Css3 div layout with column count - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Css3 div layout with column count

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

#wrapper {<!--from  ww w.  j  av a  2 s.c om-->
   position: absolute;
   width: 1000px;
   height: 500px;
   background: green;
   -moz-column-count: 3;
   -webkit-column-count: 3;
   column-count: 3;
   -webkit-column-width: 200px;
   -moz-column-width: 200px;
   column-width: 200px;
}
.box {
   width: 200px;
   height: 100px;
   background: red;
   font-size: 30px;
   color: #fff;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div class="box">
     0 
   </div> 
   <div class="box">
     1 
   </div> 
   <div class="box">
     2 
   </div> 
   <div class="box">
     3 
   </div> 
   <div class="box">
     4 
   </div> 
   <div class="box">
     5 
   </div> 
   <div class="box">
     6 
   </div> 
   <div class="box">
     7 
   </div> 
   <div class="box">
     8 
   </div> 
   <div class="box">
     9 
   </div> 
   <div class="box">
     10 
   </div> 
   <div class="box">
     11 
   </div> 
   <div class="box">
     12 
   </div> 
   <div class="box">
     13 
   </div> 
   <div class="box">
     14 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials