+ 1

pro css & html out there, pls help me!

how to display a table 1 next to table 2 i have the following code <body> <table id="table1"></table> <table id="table2"></table> </body> but the result similar like this code <body> <table id="table1"></table> <br/> <table id="table2"></table> </body> i have try this but doesnt work <body> <table id="table1"></table> <br/> <table id="table2"></table> <style> #table1 { align: right; } #table2 { align: left; } </style> </body> what i want is both table are on the same line..

9th Oct 2017, 12:06 AM
boyd
boyd - avatar
4 Answers
+ 4
table { display: inline; }
9th Oct 2017, 12:13 AM
CalviÕ²
CalviÕ² - avatar
+ 4
next time code it and put link, better if someone wants to help!
9th Oct 2017, 2:15 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 4
Add float:left; to first table style, and float:right; to the second table style, they will show up side by side.
9th Oct 2017, 3:31 AM
Ipang
+ 2
oh.. tq!
9th Oct 2017, 12:16 AM
boyd
boyd - avatar