Quantcast
Channel: How to wrap lists after 5 element? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How to wrap lists after 5 element?

$
0
0

We have an unordered list that will display up to 10 items. How can we setup the list so that it will place the first five items on the left and put the next five items into the next column (splitting equally)?

Here is the current and desired output. We tried to use CSS Flexbox, but cannot find a way to do it. Open to other ideas if flexbox cannot get it done.

Here is the current results and desired outputs. output

ul {  display: flex;  flex-direction: column;  flex: 0 1 auto;}
<div><ul><li>Assertively mesh</li><li>client-centered</li><li>niches and covalent networks</li><li>Uniquely e-enable</li><li>team driven benefits</li><li>rather than exceptional</li><li>architectures Continually</li><li>foster cutting-edge</li><li>open-source core</li><li>process-centric</li></ul></div>

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>