Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Align to bottom

Reply
Thread Tools

Align to bottom

 
 
Thomas Scheiderich
Guest
Posts: n/a
 
      07-28-2004
Is there a way to make a section of a <td> tag to go to the bottom of the
cell?

Below is a portion of my page. The <td class="BodyText"> tag has a
"vertical-align:top" in the css file to move the data to the top of the
page.

I would like to take the section below the repeater (label and radio
buttons) and move them to the bottom of the cell.

Is there an easy way to do this?

<td class="BodyText"><br>
<div align="center" >
<center>
<table border="0" width="600" bgcolor="#000080"
style="vertical-align:top">
<tr>
<td width="100%" align="left"><font color="#FFFFFF" face="Arial
Black">QA Documents - <%= request.QueryString("name") %></font></td>
</tr>
</table>
</center>
</div>
<table border="0" width="600" cellspacing="5" cellpadding="2"
align="center">
<tr>
<td>
<form runat="Server">
<asp:Repeater
ID="rptAuthors"
runat="Server">

<ItemTemplate>
<font face="Arial" size="2" color="#000080"><b><a href="<%#
Container.DataItem("fullFileName") %>" target="_blank" ><%#
Container.DataItem("title") %></a></b></font><br>
</ItemTemplate>
</asp:Repeater>


<p>
<span class="HeaderText">Search Titles:</span><br>
<asp:TextBox
ID="txtSearchPhrase"
Columns="50"
Runat="Server" />
<asp:Button
Text="Search!"
OnClick="Button_Click"
Runat="Server" />

<asp:Label
ID="lblResults"
EnableViewState="False"
Runat="Server"
class="HeaderText" />
<asp:radiobuttonlist class="BodyText" ID="searchChoice"
runat="server" RepeatDirection="Horizontal" RepeatLayout="table"
TextAlign="right">
<asp:ListItem Text="All Documents" value="All" />
<asp:ListItem Text="Current Documents" value="Current"
Selected="True" />
</asp:radiobuttonlist>
</form>
</td>
</tr>
</table>
</td>

Thanks,

Tom.


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      07-28-2004
Tom,

You already have another table inside the cell with class="BodyText". Why
can't you just align this inner table or separate cells in it as you wish?

Eliyahu

"Thomas Scheiderich" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way to make a section of a <td> tag to go to the bottom of the
> cell?
>
> Below is a portion of my page. The <td class="BodyText"> tag has a
> "vertical-align:top" in the css file to move the data to the top of the
> page.
>
> I would like to take the section below the repeater (label and radio
> buttons) and move them to the bottom of the cell.
>
> Is there an easy way to do this?
>
> <td class="BodyText"><br>
> <div align="center" >
> <center>
> <table border="0" width="600" bgcolor="#000080"
> style="vertical-align:top">
> <tr>
> <td width="100%" align="left"><font color="#FFFFFF" face="Arial
> Black">QA Documents - <%= request.QueryString("name") %></font></td>
> </tr>
> </table>
> </center>
> </div>
> <table border="0" width="600" cellspacing="5" cellpadding="2"
> align="center">
> <tr>
> <td>
> <form runat="Server">
> <asp:Repeater
> ID="rptAuthors"
> runat="Server">
>
> <ItemTemplate>
> <font face="Arial" size="2" color="#000080"><b><a href="<%#
> Container.DataItem("fullFileName") %>" target="_blank" ><%#
> Container.DataItem("title") %></a></b></font><br>
> </ItemTemplate>
> </asp:Repeater>
>
>
> <p>
> <span class="HeaderText">Search Titles:</span><br>
> <asp:TextBox
> ID="txtSearchPhrase"
> Columns="50"
> Runat="Server" />
> <asp:Button
> Text="Search!"
> OnClick="Button_Click"
> Runat="Server" />
>
> <asp:Label
> ID="lblResults"
> EnableViewState="False"
> Runat="Server"
> class="HeaderText" />
> <asp:radiobuttonlist class="BodyText" ID="searchChoice"
> runat="server" RepeatDirection="Horizontal" RepeatLayout="table"
> TextAlign="right">
> <asp:ListItem Text="All Documents" value="All" />
> <asp:ListItem Text="Current Documents" value="Current"
> Selected="True" />
> </asp:radiobuttonlist>
> </form>
> </td>
> </tr>
> </table>
> </td>
>
> Thanks,
>
> Tom.
>
>



 
Reply With Quote
 
 
 
 
Thomas Scheiderich
Guest
Posts: n/a
 
      07-30-2004
"Eliyahu Goldin" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Tom,
>
> You already have another table inside the cell with class="BodyText". Why
> can't you just align this inner table or separate cells in it as you wish?


Not sure how you mean this.

I tried to put the link everywhere. Tried just <tr><td> with the current
table and also putting it after the table, but before the <td> of the outer
table. It still put it just after the inner table. The problem is that
unless I am already at the bottom of the screen, it will put it in the
middle of the screen. The TD area is about 3/4s of the screen and the
repeater may take about 1/4 of the screen. I want there to be a lot of
white space and put the link at the bottom - without specifying a size of
the box, since that will change depending on how many items are displayed.

Thanks,

Tom
>
> Eliyahu
>
> "Thomas Scheiderich" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Is there a way to make a section of a <td> tag to go to the bottom of

the
> > cell?
> >
> > Below is a portion of my page. The <td class="BodyText"> tag has a
> > "vertical-align:top" in the css file to move the data to the top of the
> > page.
> >
> > I would like to take the section below the repeater (label and radio
> > buttons) and move them to the bottom of the cell.
> >
> > Is there an easy way to do this?
> >
> > <td class="BodyText"><br>
> > <div align="center" >
> > <center>
> > <table border="0" width="600" bgcolor="#000080"
> > style="vertical-align:top">
> > <tr>
> > <td width="100%" align="left"><font color="#FFFFFF" face="Arial
> > Black">QA Documents - <%= request.QueryString("name") %></font></td>
> > </tr>
> > </table>
> > </center>
> > </div>
> > <table border="0" width="600" cellspacing="5" cellpadding="2"
> > align="center">
> > <tr>
> > <td>
> > <form runat="Server">
> > <asp:Repeater
> > ID="rptAuthors"
> > runat="Server">
> >
> > <ItemTemplate>
> > <font face="Arial" size="2" color="#000080"><b><a href="<%#
> > Container.DataItem("fullFileName") %>" target="_blank" ><%#
> > Container.DataItem("title") %></a></b></font><br>
> > </ItemTemplate>
> > </asp:Repeater>
> >
> >
> > <p>
> > <span class="HeaderText">Search Titles:</span><br>
> > <asp:TextBox
> > ID="txtSearchPhrase"
> > Columns="50"
> > Runat="Server" />
> > <asp:Button
> > Text="Search!"
> > OnClick="Button_Click"
> > Runat="Server" />
> >
> > <asp:Label
> > ID="lblResults"
> > EnableViewState="False"
> > Runat="Server"
> > class="HeaderText" />
> > <asp:radiobuttonlist class="BodyText" ID="searchChoice"
> > runat="server" RepeatDirection="Horizontal" RepeatLayout="table"
> > TextAlign="right">
> > <asp:ListItem Text="All Documents" value="All" />
> > <asp:ListItem Text="Current Documents" value="Current"
> > Selected="True" />
> > </asp:radiobuttonlist>
> > </form>
> > </td>
> > </tr>
> > </table>
> > </td>
> >
> > Thanks,
> >
> > Tom.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div align=center> also affects align of dynamic dropdown item text Steve Richter ASP .Net 1 06-24-2007 07:11 PM
left align within centre align Paul Lautman HTML 3 03-03-2006 02:45 PM
text-align vs align tshad HTML 1 06-23-2005 10:29 PM
vertical-align: bottom shank HTML 9 10-03-2003 12:59 AM
how to Align text left & vertical align middle Kay ASP .Net 2 07-25-2003 08:32 AM



Advertisments