F flexr.dev

Layout Recipe

Build Responsive Wrapping Cards with Tailwind flex-wrap

'flex flex-wrap gap-6' gives you a card row that gracefully reflows: when the container runs out of horizontal room, overflowing cards wrap onto a new line while keeping identical gutters in both directions. Unlike a rigid grid, each row packs as many cards as fit. Give each card a flex-basis (like 'basis-64') to control the wrap point, and the layout adapts to any screen width with zero media queries.

The playground below is pre-configured with this exact layout — tweak any control to explore, then copy the Tailwind or vanilla CSS from the exporter.

Live Preview

Current Layout:

Popular Layout Guides