Create 3-Column layout with fluid center - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Create 3-Column layout with fluid center

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

#left {
   position:fixed;
   left:0;
   width:50px;
   height:100%;
   background-color:blue;
}
#center {<!-- www  .ja  va2  s .c om-->
   margin: 0 50px;
   background-color:green;
   overflow:auto
}
#right {
   position:fixed;
   right:0;
   top:0;
   width:50px;
   height:100%;
   background-color:red;
}
body, html, #wrapper {
   width:100%;
   height:100%;
   padding:0;
   margin:0;
}
#test{
   height:1000px;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="left">
     left
   </div> 
   <div id="center"> 
    <div id="test"></div> test center
   </div> 
   <div id="right">
     right
   </div> 
  </div>  
 </body>
</html>

Related Tutorials