<TABLE> Question- Multiple tables within a cell

liunx

Guest
In the code below I am trying to get table 2 & 3 in row 2 cell 2<br />
to be side by side is this possible. When I do this they stack.<br />
<br />
<TABLE border="1"><br />
<TR><br />
<TD><br />
Row 1 Cell 1<br />
</TD><br />
<TD><br />
<TABLE border="1"><TR><TD><br />
Table 1 Row 1 Cell 2<br />
</TD></TR></TABLE><br />
</TD></TR><br />
<TR><br />
<TD><br />
Row 2 Cell 1<br />
</TD><br />
<TD><br />
<TABLE border="1"><TR><TD><br />
Table 2 Row 2 Cell 2<br />
</TD></TR></TABLE><br />
<TABLE border="1"><TR><TD><br />
Table 3 Row 2 Cell 2<br />
</TD></TR></TABLE><br />
</TD></TR><br />
<TR><br />
<TD><br />
Row 3 Cell 1<br />
</TD><br />
<TD><br />
<TABLE border="1"><TR><TD><br />
Table 4 Row 3 Cell 2<br />
</TD></TR></TABLE><br />
</TD></TR></TABLE><br />
<br />
<br />
Thanks Clyed<!--content-->Just a guess. You rarely ever have to use nested tables for tabular data.<br />
<br />
<table border="1"><br />
<tr><br />
<td>Row 1 Cell 1</td><br />
<td colspan="2">Row 1 Cell 2</td><br />
</tr><br />
<tr><br />
<td>Row 2 Cell 1</td><br />
<td>Row 2 Cell 2</td><br />
<td>Row 1 Cell 2</td><br />
</tr><br />
<tr><br />
<td>Row 3 Cell 1</td><br />
<td colspan="2">Row 2 Cell 2</td><br />
</tr><br />
</table><!--content-->I agree with you in most cases, but in this case tables 2 and 3 need to show as tables with different borders.<!--content-->If Putting two tables in a cell side by side is possible I would like to hear from somebody.<br />
<br />
My skill level is not as advanced as most of the users I see on Web Developers.com.<br />
<br />
Any help would be appreciated.<br />
<br />
Thanks<br />
Clyde<!--content--><TABLE border="1" style="float:left;"><TR><TD><br />
Table 2 Row 2 Cell 2<br />
</TD></TR></TABLE><!--content-->Your Suggestion worked like a champ.<br />
<br />
I really needed to nest the tables and the style=float works.<br />
<br />
Thanks for sharing your skills.<br />
<br />
Clyde<!--content-->I hope if you are using tables for layout you made an informed decision to do so... If not, read this (<!-- m --><a class="postlink" href="http://www.hotdesign.com/seybold/index.html">http://www.hotdesign.com/seybold/index.html</a><!-- m -->).<!--content-->
 
Back
Top