I\'m using a flex box to display 8 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 a releva
Here is another apporach.
You can accomplish it in this way too:
.parent{ display: flex; flex-wrap: wrap; } .child{ width: 25%; box-sizing: border-box; }
Sample: https://codepen.io/capynet/pen/WOPBBm
And a more complete sample: https://codepen.io/capynet/pen/JyYaba