I have app in which I'm using a flex box to display 8 list items that will dynamically resize with my page. How do I force it to split the items into two rows? (4 per row)?
Here is jsfiddle : https://jsfiddle.net/Mwanitete/ge36dcf8/15/
.parent{
display: flex;
flex-wrap: wrap;
}
.child{
display: flex;
flex-direction: row;
flex-wrap: wrap;
list-style: none;
flex: 1 0 20%;
margin: 5px;
height: 100px;
}
<div class="parent">
<ul class="child">
<li>A</li>
<li>B</li>
<li>C</li>
<li>D</li>
<li>E</li>
<li>F</li>
<li>G</li>
<li>H</li>
</ul>
</div>