CSS3 layout with fixed left column and flex right hand column within a fixed container - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Flex Column

Description

CSS3 layout with fixed left column and flex right hand column within a fixed container

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">
.container {<!-- w w  w. j a v  a 2s  .  com-->
   border:2px solid Chartreuse;
   max-width:441px;
}

.fixed-left {
   float:left;
   width:201px;
   border:2px solid yellow;
}

.flexible {
   border:2px solid blue;
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="fixed-left">
     abcd 
   </div> 
   <div class="flexible">
     12345 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials