Breaking to a new row with flexbox

Tobias Ahlin / filed under CSS Flexbox, HTML & CSS

Here’s the challenge: if you want to create a flexbox layout with several rows of items, how do you control which item ends up in which row? Presume you want to create a layout that looks something like this, with three stacked items and alternating full-width items:

Join thousands of product people and get the latest articles and resources from my curation every day or week.