I can break it in a row direction but in column direction is pretty problematic, I need to do that in pure css add a class maybe or style something like that not much no js or anything here is my code
I am dealing with a dynamic menu where I almost can't control html so I need a css attribute to add to li
so it makes the line break (so that it breaks into a new row)
ul {
display: flex;
flex-direction: column;
}
li {
width:100px;
height: 60px;
background: red;
margin: 10px;
}
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li>Break here and start a new column</li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
Thanks