Here is a problem that I run into from time to time, which I usually try to solve from a backward point, but would like to know if there is any magic solution that others have decided to solve at the front end.
Given the list of ul / li presented in the markup in alphabetical order from az:
<ul> <li>Alpha</li> <li>Bravo</li> <li>Charlie</li> <li>Delta</li> <li>Echo</li> <li>Foxtrot</li> <li>Golf</li> <li>Hotel</li> <li>India</li> <li>Juliet</li> <li>Kilo</li> <li>Lima</li> <li>Mike</li> <li>November</li> <li>Oscar</li> <li>Papa</li> <li>Quebec</li> <li>Romeo</li> <li>Sierra</li> <li>Tango</li> <li>Uniform</li> <li>Victor</li> <li>Whiskey</li> <li>X-ray</li> <li>Yankee</li> <li>Zulu</li> </ul>
As a rule, it is very easy to float elements on the left and sort them visually horizontally in blocks, for example:

However, to get the columns, for example:

I always had to break HTML into separate objects, for example four separate <ul> elements in the example above.
Is there a way to save everything in a single ul list without any extra markup, using only CSS (no JavaScript) to get a columnar view like the second image above? My guess is βno,β but I have already seen the magic, and I would like to answer this more definitively.
Arx poetica
source share