www.webdeveloper.com
Results 1 to 5 of 5

Thread: How do you make tables to begin at top?

  1. #1
    Join Date
    May 2003
    Posts
    24

    Question How do you make tables to begin at top?

    I have three tables next to eachother in a table. But one of the tables are longer than the other ones. That results in that the two shorter tables got center verticaly.
    How do I make all the tables to begin at the top?

  2. #2
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    You need to set the vertical alignment of the containing cell, like this:
    style="vertical-align: top"

    Why are you using nested tables? There is almost always a better way.

    Adam
    "If youíre not using valid HTML, then you havenít created a Web page. You may have created something else, but it isnít a Web page." - Joe Clark

    Do something amazing (USA) | Make Poverty History

  3. #3
    Join Date
    May 2003
    Posts
    24
    I can't get vertical-align: top to work.

  4. #4
    Join Date
    Feb 2003
    Location
    Wales, UK
    Posts
    3,147
    isn't there an option for tables to valign? like

    <td valign="top">

    Failing that, did you use adams solution like

    <td style="vertical-align: top;"> ? Make sure it's on the table cell that contains these tables.

    dave
    In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
    "And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.


    Web Design Faq? | W3C | Validator | Accessibility testing | Speed up your PC | Wura | Box Model Research

  5. #5
    Join Date
    May 2003
    Posts
    24
    my misstake, I put it in wrong td. It works now.

    Thanks for your help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles