Jump to content


Image in table to the bottom


  • Please log in to reply
7 replies to this topic

#1 Guest_SwordKing_*

Guest_SwordKing_*
  • Guests

Posted 10 June 2006 - 11:02 AM

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


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 June 2006 - 11:55 AM

<td valign="bottom" ....>
Legend has it that reading the manual never killed anyone.
My site

#3 Guest_SwordKing_*

Guest_SwordKing_*
  • Guests

Posted 10 June 2006 - 12:10 PM

[!--quoteo(post=382199:date=Jun 10 2006, 01:55 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 10 2006, 01:55 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
<td valign="bottom" ....>
[/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]

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 June 2006 - 12:33 PM

Works for me with Firefox.
<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>

Legend has it that reading the manual never killed anyone.
My site

#5 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 12 June 2006 - 06:34 AM

[!--quoteo(post=382204:date=Jun 10 2006, 07:10 AM:name=SwordKing)--][div class=\'quotetop\']QUOTE(SwordKing @ Jun 10 2006, 07:10 AM) View Post[/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 :
<table cellspacing="0" cellpadding="0"><tr><td valign="bottom"><img src="images/footer.jpg"></td></tr></table>
[/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.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#6 Guest_SwordKing_*

Guest_SwordKing_*
  • Guests

Posted 25 July 2006 - 01:20 AM

Finally I added padding-top: 5px; and padding-bottom: 5px; in my Stylesheet and it works perfectly :)

Thank you for your ideas anyway !

#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 25 July 2006 - 01:59 PM

Thank you for your ideas anyway !


sigh!  Our ideas did exactly what you asked for. I don't see how padding made the image align exactly at the bottom. whatever
Legend has it that reading the manual never killed anyone.
My site

#8 Guest_SwordKing_*

Guest_SwordKing_*
  • Guests

Posted 25 July 2006 - 05:39 PM

Sorry. You are right, Andy. I found a solution for a different question, that I wanted to post. Crayon Violent gave the correct answer to me.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users