display an unordered list in two columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

display an unordered list 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">

ul {<!--from www  . ja va  2s  . c o  m-->
   columns: 2;
   -webkit-columns: 2;
   -moz-columns: 2;
}


      </style> 
 </head> 
 <body> 
  <ul> 
   <li>1</li> 
   <li>1</li> 
   <li>1</li> 
   <li>1</li> 
   <li>1</li> 
   <li>1</li> 
   <li>1</li> 
  </ul>  
 </body>
</html>

Related Tutorials