HTML CSS examples for CSS Layout:2 Column
position two divs side by side in a browser window, centered
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .side {<!--from ww w . ja v a2 s . c o m--> float:left; width:41%; height:100px; background:Chartreuse; } .left { margin-right:6%; margin-left:8.6%; } </style> </head> <body> <div class="side left"></div> <div class="side right"></div> </body> </html>