HTML CSS examples for CSS Layout:2 Column
Two column layout and one footer divided by Border
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!-- ww w.j a va 2 s . c om--> -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; } div.container { background:#eee; margin: 0 auto; width: 750px; } .left{ background:#ddd; float: left; width: 50%; border-right-style:dotted; } .right { background:#eee; float: right; width: 50%; } .footer { background: none repeat scroll 0 0 #eef; clear: both; border-top-style:dotted; } </style> </head> <body> <div class="container"> <div class="left"> section left </div> <div class="right"> section right </div> <div class="footer"> section footer </div> </div> </body> </html>