SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make a table align to the top ?

    Dear Mr/Mrs,

    I have a table inside a column of another table, like this:

    <table>
    <tr>
    <td>&nbsp;</td>
    <td>
    <table id="table-X">
    <tr><td>ABC</td>
    <tr><td>DEF</td>
    <tr><td>GHI</td>
    ...
    </table>
    </td>
    </tr>
    </table>

    The problem I'm having is that the inner table (table_X), by default, aligns in the middle (vertically) with respect to the column of the outer table. What attribute can I use to make table-X aligns to the top of the column ?

    Thanks a lot.

  2. #2
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,417
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You could use valign...

    <td valign="top">
    <table id="table-X">


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
  •