HTML CSS examples for CSS Layout:2 Column
CSS collapsing space between items in two columns
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #LeftColumn {<!-- w w w . j av a 2s . co m--> width: 200px; float: left; } #RightColumn { width: 200px; float: left; margin-left:4px; } .left_cell { width:200px; height:30px; border: 1px solid blue; margin-bottom:2px; } .right_cell { width:200px; height:42px; border: 1px solid blue; margin-bottom:2px; } </style> </head> <body> <div id="LeftColumn"> <div class="left_cell"> Just </div> <div class="left_cell"> The </div> <div class="left_cell"></div> <div class="left_cell"></div> </div> <div id="RightColumn"> <div class="right_cell"> For </div> <div class="right_cell"> Record </div> <div class="right_cell"></div> <div class="right_cell"></div> </div> </body> </html>