Three-column layout with center div covering the rest - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Three-column layout with center div covering the rest

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

.table {<!--from   w w w.  j a v a  2 s  .  c  o  m-->
   display:table;
   width:100%;
}
.cell {
   display:table-cell;
   width:1%;
   border:1px solid black;
   height:10px;
}
.cell:nth-child(2) {
   width:100%;
}


      </style> 
 </head> 
 <body> 
  <div class="table"> 
   <div class="cell">
     fit content 
   </div> 
   <div class="cell">
     expand content 
   </div> 
   <div class="cell">
     fit content 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials