Turn a one-column unordered list into a two column unordered list - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Turn a one-column unordered list into a two column unordered 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{<!--from ww w.java 2 s.  com-->
   -moz-column-count: 2; -moz-column-gap: 10px;
   -webkit-column-count: 2; -webkit-column-gap: 10px;
   column-count: 2; column-gap: 10px;
}


      </style> 
 </head> 
 <body> 
  <b>Categories</b> 
  <ul> 
   <li>Home</li> 
   <li>Career</li> 
   <li>Cars</li> 
   <li>Employment</li> 
   <li>Entertainment</li> 
   <li>Events</li> 
   <li>Household</li> 
   <li>Legal</li> 
   <li>places</li> 
   <li>Politics!</li> 
   <li>Book</li> 
   <li>Travel</li> 
   <li>PC</li> 
  </ul>  
 </body>
</html>

Related Tutorials