HTML CSS examples for CSS Layout:Column Layout
CSS nested lists into multiple columns
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul{<!-- ww w. jav a 2 s . c o m--> padding: 0; list-style: none; /*remove bullets*/ } ul li{ display: inline-block; width: 20%; /*or whatever unit*/ } ul li ul, ul li ul li{ display: block; width: 100%; } </style> </head> <body> <ul> <li> Header 1 <ul> <li>Item 1</li> <li>Item 2</li> </ul> </li> <li> Header 2 <ul> <li>Item 1.2</li> <li>Item 2.2</li> </ul> </li> </ul> </body> </html>