• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Side-by-side tables

zoobie

Mile High Club
NLC
What's the way to have tables side-by-side? Mine always want to go underneath each other... Thanks :D
 
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>
 
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
 
You could have one aligned to the right and the other to the left like this:

Code:
<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:

Code:
<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.
 
Back
Top