Div's in two columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Div's in two columns

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

div#multicolumn1{
   -moz-column-count: 2;<!--   w w  w  .j av  a  2 s. c  o  m-->
   -moz-column-gap: 50%;
   -webkit-column-count: 2;
   -webkit-column-gap: 50%;
   column-count: 3;
   column-gap: 50%;
}
.child{
   height:20px;
}


      </style> 
 </head> 
 <body> 
  <div id="multicolumn1"> 
   <div class="child">
     1 
   </div> 
   <div class="child">
     2 
   </div> 
   <div class="child">
     3 
   </div> 
   <div class="child">
     4 
   </div> 
   <div class="child">
     5 
   </div> 
   <div class="child">
     6 
   </div> 
   <div class="child">
     7 
   </div> 
   <div class="child">
     8 
   </div> 
   <div class="child">
     9 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials