PDA

View Full Version : Side-by-side tables



zoobie
November 10th, 2002, 14:15
What's the way to have tables side-by-side? Mine always want to go underneath each other... Thanks :D

Gonzo
November 10th, 2002, 14:30
What I do is place the 2 tables inside another table. something like this

<table>
<tr>
<td>
<table>
<tr>
<td>Table 1</td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td>Table 2</td>
</tr>
</table>
</td>
</tr>
</table>

zoobie
November 10th, 2002, 15:30
Yep...Just trying to avoid a nesting...I'll have to use that with, in my case, rules...unless there's another way...Thanks :D

Dusty
November 10th, 2002, 17:25
You could have one aligned to the right and the other to the left like this:


<table border="1" align="left">
<tr>
<td>
Table 1
</td>
</tr>
</table>

<table border="1" align="right">
<tr>
<td>
Table 2
</td>
</tr>
</table>

...or you could just make the two tables into one:


<table border="1">
<tr>
<td>
"Table" 1
</td>
<td>
"Table" 2
</td>
</tr>
</table>

...but I would just do as Gonzo suggested and nest them in an outer table.