CSS masonry with flexbox, :nth-child(), and order

Tobias Ahlin / filed under CSS Flexbox, HTML & CSS

On the surface it seems fairly easy to create a masonry layout with flexbox; all you need to do is set flex-flow to column wrap and voilà, you have a masonry layout. Sort of. The problem with this approach is that it produces a grid with a seemingly shuffled and obscure order. Items will be […]

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