HTML CSS examples for CSS Widget:Div Table
Layout position absolute and margin: 0 auto; divs to make a table
<html> <head></head> <body> <div style="width:900px; margin-left:auto; margin-right:auto;"> <div style=" width:450; height:70px; background:yellow; float:left;"> top left </div> <!--from www . ja v a 2s . c om--> <div style=" width:450; height:70px; background:green; float:right;"> top right </div> </div> <div style="width:900px; margin-left:auto; margin-right:auto;"> <div style=" width:450; height:70px; background:red; float:left;"> botom left </div> <div style=" width:450; height:70px; background:blue; float:right;"> bottom right </div> </div> </body> </html>