Xyphon Posted December 16, 2007 Share Posted December 16, 2007 How do you pit tables beside each other? No matter what I do the next table goes UNDER the other one. Quote Link to comment Share on other sites More sharing options...
corbin Posted December 16, 2007 Share Posted December 16, 2007 An HTML question, but oh well.... You have to either set them to inline, or put them in a container, such as the same row of another table. Quote Link to comment Share on other sites More sharing options...
Xyphon Posted December 16, 2007 Author Share Posted December 16, 2007 An HTML question, but oh well.... You have to either set them to inline, or put them in a container, such as the same row of another table. Well, that would ruin the whole output to put it in the same table. How do you set them inline? Quote Link to comment Share on other sites More sharing options...
Northern Flame Posted December 16, 2007 Share Posted December 16, 2007 you can do something like this <table> <tr> <td><table><tr><td></td></tr></table></td> <td><table><tr><td></td></tr></table></td> </tr> </table> By the way, next time dont post this in PHP because its an HTML question! Quote Link to comment Share on other sites More sharing options...
corbin Posted December 17, 2007 Share Posted December 17, 2007 An HTML question, but oh well.... You have to either set them to inline, or put them in a container, such as the same row of another table. Well, that would ruin the whole output to put it in the same table. How do you set them inline? I meant have three tables with the two tables inside of one of the tables.... Example: <table> <tr> <td> <table> <tr> <td> table 1 </td> </tr> </table> </td> <td> <table> <tr> <td> table 2 </td> </tr> </table> </td> </tr> </table> That's basically identical to what Northern Flame put, but oh well ;p. <table style="display: inline;"> The only problem with inline elements is that you can't set a static width for them (well..... not easily). Quote Link to comment Share on other sites More sharing options...
mfindlay Posted December 17, 2007 Share Posted December 17, 2007 I would do this with css... html... <div class="table2"> Table 2 </div> <div class="table1"> table 1 </div> css... .table1 { float left; } .table2 { float right; } Cheers. Quote Link to comment Share on other sites More sharing options...
play_ Posted December 17, 2007 Share Posted December 17, 2007 Im pretty sure this is what you are looking for: http://www.phpfreaks.com/forums/index.php/topic,167107.msg736185.html#msg736185 i've asked the same very question. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.