Forum Moderators: not2easy

Message Too Old, No Replies

How to make a table align to the top ?

         

tmyonline

7:38 am on Feb 26, 2008 (gmt 0)

10+ Year Member



Dear Mr/Mrs,

I have a table inside a column of another table. For example,

<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 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.

dreamcatcher

8:06 am on Feb 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

That work maybe?

dc

vol7ron

5:15 am on Feb 29, 2008 (gmt 0)

10+ Year Member



in place of valign you could also use

style="vertical-align:top;"