+ 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..
4 Answers
+ 4
table {
display: inline;
}
+ 4
next time code it and put link, better if someone wants to help!
+ 4
Add float:left; to first table style, and float:right; to the second table style, they will show up side by side.
+ 2
oh.. tq!