Three Column Layout with side columns elastic and middle fixed - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Three Column Layout with side columns elastic and middle fixed

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">

html, body {
   height: 100%;
}
.container {<!--from   w  ww.  j av a2s. c o m-->
   display: table;
   width: 100%;
   height: 100%;
}
.container > div {
   display: table-cell;
   text-align: center;
}
.fixed {
   min-width: 200px; 
   max-width:300px;
   background: yellow;
   color: white;
}
.fluid {
   background: rgb(0, 162, 232);
}


      </style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="fluid">
     I am fluid 
   </div> 
   <div class="fixed">
     I'm Fixed! 
   </div> 
   <div class="fluid">
     I am fluid 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials