GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HTML Guruz. (https://gfy.com/showthread.php?t=265193)

FuqALot 04-06-2004 08:20 AM

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!

Roald 04-06-2004 08:21 AM

add valign="bottom" in the TD tag

FuqALot 04-06-2004 08:39 AM

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.

MattO 04-06-2004 08:40 AM

just add another row with a colspan=2

FuqALot 04-06-2004 08:46 AM

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.

chodadog 04-06-2004 09:31 AM

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.

&lt;table cellpadding="0" width="100%" border="1"><br>
&lt;tr><br>
&lt;td>Welcome&lt;BR>&lt;BR>&lt;/td><br>
&lt;/tr><br>
<br>
&lt;tr><br>
&lt;td valign="bottom">Bottom&lt;BR>&lt;/td><br>
&lt;/tr><br>
&lt;/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.

Dynamix 04-06-2004 09:40 AM

PHP Code:

<HTML>
<
TABLE BORDER=3><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>
</
HTML

<CENTER>
<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>

FuqALot 04-06-2004 09:48 AM

Wow! Thanks guys, that's just excellent.
Indeed Chodadog, that was the idea.
Dynamix did it just the way i wanted. Awesome!

Dynamix 04-06-2004 09:52 AM

Quote:

Originally posted by FuqALot
Wow! Thanks guys, that's just excellent.
Indeed Chodadog, that was the idea.
Dynamix did it just the way i wanted. Awesome!

glad I could help :thumbsup


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