HTML CSS examples for CSS Layout:3 Column
Position three lists horizontal side by side
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #parent-div {<!--from ww w .j a va 2s .co m--> background:Chartreuse; } #div1 { float:left; width:34%; padding:11px; display:inline-block; background:blue; box-sizing:border-box; } #div2 { width:34%; padding:11px; display:inline-block; background:red; box-sizing:border-box; } #div3 { width:34%; padding:11px; box-sizing:border-box; background:green; display:inline-block; } </style> </head> <body> <div id="parent-div"> <div id="div1" class="child-div"> <p>Lorem</p> <ul> <li>Lorem </li> <li>Lor</li> <li>Lore</li> </ul> </div> <div id="div2" class="child-div"> <h4>Lorem</h4> <ul> <li>Lorem </li> <li>Lor</li> <li>Lore</li> </ul> </div> <div id="div3" class="child-div"> <h4>Lorem</h4> <ul> <li>Lorem </li> <li>Lor</li> <li>Lore</li> </ul> </div> </div> </body> </html>