I want a preferably CSS-only technique for getting an ol
to flow into two columns if it is longer than the height of the container. The number of items in the list may vary and the height of the container may change.
When I try setting the li to width:50%
and float:left
it goes in two columns but 2 goes beside 1 instead of below it.
what I want to achieve is this:
- abcdef 4. abcdef
- abcdef 5. abcdef
- abcdef
Automatic two columns with CSS or JavaScript
– Chop