Guest Gregory Mifsud Posted November 7, 2006 Share Posted November 7, 2006 I am building a site using tables and I created a banner with tables and everything is ok. But when i try to make two tables near each other with tables in them the tables stand on top of each other. The code is this:<body lefmargin="0" topmargin="0" marginwidth="0" marginheight="0"><centre><table id="acontainer" border="1" width="900" cellpadding="0" cellspacing="0"> <tr> <td width="900" height="135" colspan="3"> <table id="masthead" border="1" width="900"> <tr> <td width="422" height="119" colspan="2"><img src="#" width="422" height="119" /></td> <td width="289" height="119"><img src="#" width="289" height="119"></td> <td width="189" height="119"><img src="#" width="189" height="119" /></td> </tr> <tr> <td width="900" height="10" colspan="4"></td> </tr> <tr id="navigation"> <td width="225" height="20">Link 1</td> <td width="225" height="20">Link 1</td> <td width="225" height="20">Link 1</td> <td width="225" height="20">Link 1</td> </tr> </table> </td> </tr> <tr> <td id="leftcontainer" width="700" height="522" valign="top"> <table width="700" height="522" border="1"> <tr> <td width="700" height="20" valign="top">hello</td> </tr> <tr> <td width="700" height="20" valign="top">hello</td> <tr> </tr> <td width="700" height="482" valign="top">hello</td> </tr> </table> </td> </tr> <tr> <td id="rightcontainer" width="200" height="522" valign="top"> <table width="200" height="522" border="1"> <tr> <td width="200" height="20" valign="top">Contact Information</td> </tr> <tr> <td width="200" height="502" valign="top">Bernard Mifsud</td> </tr> </table> </td> </tr></table></body></html>I would appreciate any help. Thanks Link to comment Share on other sites More sharing options...
aspnetguy Posted November 7, 2006 Share Posted November 7, 2006 tables are block elements so they will not sit side by side normally.You need to make a master table with 2 columns to hold the 2 tables. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now