Set column count - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

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

ul {<!--  w  ww .jav a  2 s  .c  o m-->
   padding: 0;
   column-count:3;
}
ul li{
   border: 1px solid #ddd;
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li>Col1</li> 
   <li>Col2</li> 
   <li>Col3</li> 
  </ul>  
 </body>
</html>

Related Tutorials