SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table at the top of a cell.....

    I have a cell and depending on how long the page is, it stretches because it covers the whole page. I have a table in the cell and I want it to always be at the very top, but when the cell stretches out due to long pages, it centers the table in it. How do I fix that? HTML.

  2. #2
    SitePoint Guru augathra's Avatar
    Join Date
    Jul 2004
    Location
    united states
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have two options:
    <table width="500"> (set the width to what you want it)

    <td style="text-align: left;">

    Not sure what you mean by center the table, since the table should stretch the size of the cell (unless you set a width to the table). Either way, it's probably a style you want.

  3. #3
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to set the vertical alignment to top in the cell holding the inner table

    <td valign="top">

    Nadia


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
  •