Multi column HTML list - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Multi column HTML list

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 w  w. j  ava 2s.com-->
   list-style: none;
   columns:100px 3;
   -webkit-columns:100px 3; /* Safari and Chrome */
   -moz-columns:100px 3; /* Firefox */
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li>item1</li> 
   <li>item2</li> 
   <li>item3</li> 
   <li>item4</li> 
   <li>item5</li> 
   <li>item6</li> 
   <li>item7</li> 
   <li>item8</li> 
   <li>item9</li> 
   <li>item10</li> 
   <li>item11</li> 
   <li>item12</li> 
  </ul>  
 </body>
</html>

Related Tutorials