Create 3 divs layout with the middle one fluid - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Create 3 divs layout with the middle one 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">
div {<!--from   w ww  .  jav a2s .c  om-->
   height:100px;
}

.container {
   width:100%;
}

.left {
   float:left;
   width:51px;
   background:yellow;
}

.right {
   float:right;
   width:51px;
   background:yellow;
}

.middle {
   background:Chartreuse;
   color:yellow;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="right">
     Right 
   </div> 
   <div class="left">
     Left 
   </div> 
   <div class="middle">
     Middle 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials