HTML CSS examples for CSS Layout:3 Column
Positioning CSS in 3 columns
<html> <head> <style> .container {<!-- w ww. j a v a 2 s . com--> margin: 0 auto; width: 1024px; } .block { padding: 1em; margin-right: 1%; float: left; border: 1px solid #000; display: block; } .center-block { width: 58%; } .left-block, .right-block { width: 15%; } .block:last-child { margin-right: 0; } .cf:before, .cf:after { content: " "; display: table; } .cf:after { clear: both; } .cf { *zoom: 1; } </style> </head> <body> <div class="container cf"> <div class="block left-block"> <ul> <li>Home</li> <li>About</li> <li>List</li> <li>Hours</li> <li>Directions</li> <li>Contact 1</li> </ul> </div> <div class="block center-block"> <p>Center Column</p> </div> <div class="block right-block"> <ul> <li>Right1 </li> <li>About</li> <li>Draft List</li> <li>Hours</li> <li>Directions</li> <li>Contact 2</li> </ul> </div> </div> </body> </html>