![]() |
HTML Guruz.
Hi lets say there is a table.
<table width="100%"> <tr> <td>Welcome</td> </tr> </table> Now the height of it differs. On the bottom of that table i want some text. How do you do that. Something like <div valign="bottom">Text</div>. So that the text will appear on the bottom of the table. You could use a row of <br> but the height differs. Thnx alot! |
add valign="bottom" in the TD tag
|
Thanks, that'll do but i need text in the same TD on top aswell.
There is basically one table, with two TD's. The left TD will set the height (there's some stuff in it), but in the right TD there's not so many stuff, just a few lines of text. So those few lines on the right TD need to stay on top, but I also need a line on the bottom in that right TD. Thnx :P. |
just add another row with a colspan=2
|
Yeah but I guess that row will then be placed under everything, so that text will also appear under anything of the left TD, while it should be next to the most bottom line of the left TD. Lol... :P.
|
Not entirely sure what you want. But you want the text to be at the very bottom of the table, without a gap?
Easiest way to do it would be to create a new row and set the cellpadding value of the table to 0. Just added the line breaks to show what happens. <table cellpadding="0" width="100%" border="1"><br> <tr><br> <td>Welcome<BR><BR></td><br> </tr><br> <br> <tr><br> <td valign="bottom">Bottom<BR></td><br> </tr><br> </table> <table cellpadding="0" width="100%" border="1"> <tr> <td>Welcome<BR><BR></td> </tr> <tr> <td valign="bottom"><BR><BR>Bottom<BR></td> </tr> </table> I think that's what you wanted. You were rather vague, though. |
PHP Code:
<TABLE BORDER=3 WIDTH=80%><TR><TD ROWSPAN=2> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> Spacer<BR> </TD><TD VALIGN=TOP>Spacer</TD></TR> <TR><TD VALIGN=BOTTOM>Blah</TD></TR></TABLE> </CENTER> |
Wow! Thanks guys, that's just excellent.
Indeed Chodadog, that was the idea. Dynamix did it just the way i wanted. Awesome! |
Quote:
|
All times are GMT -7. The time now is 07:26 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123