HTML CSS examples for CSS Layout:2 Column
Layout div in two column
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w ww . j av a2 s. co m--> width:600px; } .container div { width:300px; float:left; background:red; text-align:center; color:#fff; } </style> </head> <body> <div class="container"> <div> 1 </div> <div> 2 </div> <div> 3 </div> <div> 4 </div> <div> 5 </div> <div> 6 </div> </div> </body> </html>