Layout 3 Divs in the same line with 2 div Fixed width and 1 div Fluid - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Layout 3 Divs in the same line with 2 div Fixed width and 1 div 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">
.right {
   height:41px;
   width:41px;
   float:left;
   background:green;
}

.left {
   height:41px;
   width:41px;
   float:right;
   background:green;
}

.fluid {<!--from ww  w . j a  v  a  2 s .  c  om-->
   overflow:block;
   height:41px;
   background:red;
   border:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="fluid">
    2 
   <div class="left">
     3 
   </div> 
   <div class="right">
     1 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials