Getting the perfect 3-column layout - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Getting the perfect 3-column layout

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

.row{<!--from ww  w  .j  a  va  2s. c  o  m-->
   display:table;
   width:100%;
}
.col{
   border:1px solid #000;
   display:table-cell;
   width:33%;
}


      </style> 
 </head> 
 <body> 
  <div class="row"> 
   <div class="col">
     C1 
   </div> 
   <div class="col">
     C2 
   </div> 
   <div class="col">
     C3 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials