Forum Moderators: open

Message Too Old, No Replies

Aligning tables next to each other

         

th1chsn

3:38 pm on Jul 16, 2006 (gmt 0)

10+ Year Member



Does anyone know how to align tables next to each other? I'm trying to get the second table to appear next to the first one and not under it.

TIA.

<table>
<tr>
<td>&nbsp;</td>
</tr>
</table>

<table>
<tr>
<td>&nbsp;</td>
</tr>
</table>

Birdman

3:49 pm on Jul 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The easiest way would be to "nest" the tables in another table. The parent table will have only two cells:

<table>
<tr>
<td style="width: 50%;">

<table>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</td>
<td>

<table>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</td?
</tr>
</table>

penders

10:19 am on Jul 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Alternatively you could set the align attribute on the first table, to say align="left" - the 2nd table will follow along side the first one (to the right).

<table align="left">