SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Grosseto, Italy
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    aligning an image at bottom of a table?

    hi,
    I have a table with an image in it. How can I make the image stay at the bottom of the table without using <p> or <br> tags to balance? with an "align" command?

    <table width="200" height="100" cellpadding="0" cellspacing="0"><tr><td><img src="whatever.gif"></td></tr></table>

    Thanks

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should use the valign="bottom" attribute in your <td>. That should do the trick.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Grosseto, Italy
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    sorry for the delay in replying

    it works great! thank you very much

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should consider rewriting those lines with CSS:
    Code:
    <table style="width: 200px; height: 100px; vertical-align: bottom;" cellpadding="0" cellspacing="0">
       <tr>
          <td>
             <img src="whatever.gif">
          </td>
       </tr>
    </table>
    Sketch
    Aaron Brazell
    Technosailor




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •