HTML CSS examples for CSS Layout:2 Column
divide list items in 2 columns, fill the first before the second
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!--from ww w .ja va 2s .co m--> box-sizing: border-box; margin: 0; } html, body { height: 100%; } header { height: 100px; background: none #eee; } ul { margin: 0; column-fill: auto; column-count: 2; -moz-column-fill: auto; -moz-column-count: 2; height: calc(100vh - 100px); } </style> </head> <body> <header> <h1>Header</h1> </header> <div> <ul> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> <li>word</li> </ul> </div> </body> </html>