Jump to content

Image in table to the bottom


Guest SwordKing

Recommended Posts

Guest SwordKing
Hey dudes.

I got one simple question, but didn't even know the answer.

There is a table, like

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<table height="100" width="100">
<tr>
<td>[Image here]</td>
</tr>
</table>
[/quote]

And e.g. a smilie.

I want that image at the bottom of the table without using commands, like <p> or <br> !

[img src=\"http://swordking.gfx-networks.de/image1.jpg\" border=\"0\" alt=\"IPB Image\" /]

Please help me.

- Roland
Link to comment
https://forums.phpfreaks.com/topic/11646-image-in-table-to-the-bottom/
Share on other sites

Guest SwordKing
[!--quoteo(post=382199:date=Jun 10 2006, 01:55 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 10 2006, 01:55 PM) [snapback]382199[/snapback][/div][div class=\'quotemain\'][!--quotec--]
<td [b]valign="bottom"[/b] ....>
[/quote]

<td valign="bottom" >

doesn't work !

I tried at before I opened the topic. I can give you the full code :

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
<table cellspacing="0" cellpadding="0"><tr><td valign="bottom"><img src="images/footer.jpg"></td></tr></table>[/quote]
Works for me with Firefox.
[code]<table border=1>
<tr>
<td valign="bottom"><img src="test_image.jpg" width="140" height="140" alt="" border="0"></td>
<td><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p></td>
</tr>
</table>[/code]
[!--quoteo(post=382204:date=Jun 10 2006, 07:10 AM:name=SwordKing)--][div class=\'quotetop\']QUOTE(SwordKing @ Jun 10 2006, 07:10 AM) [snapback]382204[/snapback][/div][div class=\'quotemain\'][!--quotec--]
<td valign="bottom" >

doesn't work !

I tried at before I opened the topic. I can give you the full code :
[code]
<table cellspacing="0" cellpadding="0"><tr><td valign="bottom"><img src="images/footer.jpg"></td></tr></table>
[/code]
[/quote]
your code does work. but since there is no height defined in the table tag, and all you have is an image inside your td tags, it won't *look* like it's aligned at the bottom, because it embodies the entire space of the td. you need to add a height=xx inside your table tags.
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.