Fixed position for three columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Fixed Position

Description

Fixed position for three columns

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
* {<!--from   w w  w  .  j  a va2  s. c om-->
   margin:0;
   padding:0;
}

html,body {
   height:100%;
}

.wrap, .left, .right, .content {
   height:100%;
   vertical-align:top;
}

.wrap {
   background:Chartreuse;
   width:401px;
   margin:0 auto;
   display:table;
}

.left {
   width:51px;
   background:yellow;
   display:table-cell;
}

.right {
   width:100px;
   background:blue;
   display:table-cell;
}
</style> 
 </head> 
 <body> 
  <div class="wrap"> 
   <div class="left"> 
   </div> 
   <div class="content"> 
   </div> 
   <div class="right"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials