HTML CSS examples for CSS Layout:Column Layout
Splitting elements into columns with a specific number of elements in each column
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!--from ww w . j a v a2 s.c o m--> -moz-column-count: 4; -moz-column-gap: 20px; -webkit-column-count: 4; -webkit-column-gap: 20px; column-count: 4; column-gap: 20px; } </style> </head> <body> <!--[if lt IE 10]> <style> li { width: 25%; float: left } </style> <![endif]--> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> <li>Item 6</li> <li>Item 7</li> <li>Item 8</li> <li>Item 9</li> <li>Item 10</li> <li>Item 11</li> <li>Item 12</li> <li>Item 13</li> <li>Item 14</li> <li>Item 15</li> <li>Item 16</li> <li>Item 17</li> <li>Item 18</li> <li>Item 19</li> <li>Item 20</li> <li>Item 21</li> <li>Item 22</li> <li>Item 23</li> </ul> </body> </html>