HTML CSS examples for CSS Layout:2 Column
Create 2 column div layout with right column with fixed width and left fluid
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!--from w ww .j a v a2 s. c o m--> box-sizing:border-box; } html, html body { position:relative; width:100%; height:100%; margin:0; } html body>div { position:absolute; border:solid Chartreuse; padding:6px; } html body .top, html body .bottom { width:100%; height:76px; } html body .left, html body .right { top:76px; width:51px; height:calc(100% - 76px * 3); } html body .bottom { bottom:0; } html body .right { right:0; } html body .center { position:absolute; top:76px; left:51px; width:calc(100% - 51px * 3); height:calc(100% - 76px * 3); } </style> </head> <body> <div class="top"> A </div> <div class="left"> B </div> <div class="bottom"> C </div> <div class="right"> D </div> <div class="center"> E </div> </body> </html>