CSS for Two Left and Middle Column Fixed Width Left and Right Column Fluid - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

CSS for Two Left and Middle Column Fixed Width Left and Right Column Fluid

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

body {<!-- w ww .  j a  v a2  s  .co m-->
   background-color: #444;
   margin: 0;
}
#wrapper {
   width: 1005px;
   min-height:450px;
   display:block;
   margin: 0 auto;
}
#leftcolumn, #rightcolumn, #mid {
   float: left;
   min-height: 450px;
   color: white;
}
#leftcolumn {
   width: 57px;
   background-color: #111;
}
#mid {
   width: 160px;
   background-color: #087;
}
#rightcolumn {
   width: calc(100% - 217px);
   background-color: #777;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="leftcolumn">
     Left 
   </div> 
   <div id="mid">
     Mid 
   </div> 
   <div id="rightcolumn">
     Right 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials