HTML CSS examples for CSS Layout:2 Column
Div positioning with 2 multiple div's column, left and right + center div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #column1<!-- w ww. jav a2 s.c om--> { float:left; width:100px; } #column2 { float:left; width:200px; margin: 0px 10px 0px 10px; background: green; height:410px; } #column3 { float:left; width:100px; } #column1_1 { margin-bottom:10px; background:red; height:200px; } #column1_2 { background:blue; height:200px; } #column3_1 { margin-bottom:10px; background:red; height:200px; } #column3_2 { background:blue; height:200px; } </style> </head> <body> <div id="column1"> <div id="column1_1"> col 1_1 </div> <div id="column1_2"> col 1_2 </div> </div> <div id="column2"> col 2 </div> <div id="column3"> <div id="column1_1"> col 1_1 </div> <div id="column1_2"> col 1_2 </div> </div> </body> </html>