View Full Version : Table question
Can I have two tables side by side on a page? And if so, how?
brothercake
03-09-2003, 08:09 AM
<table style="float:left"> ... </table>
<table style="float:right"> ... </table>
will do it in modern (5+) browsers; if you want that layout in legacy browsers then you can nest each table inside another table.
But note - using tables for layout (rather than data) is generally discouraged; if you do use them like that, then you should set a null summary attribute
<table summary="" ...
so that screenreaders know it's not a data table.
FJbrian
03-10-2003, 05:39 AM
make one align="left" or "right" and play with the width a bit
webmarkart
03-10-2003, 05:43 AM
okay, this is lo tech but effective:
<TABLE WIDTH="100%" BORDER="1">
<TR>
<TD WIDTH="50%">
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="100%">TABLE 1</TD>
</TR>
</TABLE>
</TD>
<TD WIDTH="50%">
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="100%">TABLE 2</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
Lo tech is how I went. Thanks everyone. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.