F flexr.dev

Layout Recipe

Create a Two-Column Layout with Tailwind Grid

'grid grid-cols-2 gap-8' is the fastest route to a balanced two-column split for text/image sections, comparison panels, or settings pages. Both columns get exactly half the available width regardless of their content, which flexbox does not guarantee without extra 'basis' utilities. To stack the columns on mobile, prefix the column count with a breakpoint: 'grid-cols-1 md:grid-cols-2'.

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