CSS & Layout

CSS Grid Generator

Design your columns, rows, gaps and named areas on a live grid, then copy production-ready CSS. Everything runs in your browser — nothing is uploaded.

Runs in your browser v1.0.0

Grid setup

3 × 2

Start from a preset or set the columns, rows and gaps. The preview and CSS update live.

Presets

Track sizes

Columns

Rows

Named areas optional

Add a name, then click or drag across the grid to paint it. Empty cells are written as . and skipped by the browser.

Live preview

updates as you edit

CSS output


                    

How it works

The preview is a real CSS grid built from grid-template-columns, grid-template-rows, gap and grid-template-areas. Identical neighbouring tracks are collapsed into repeat(), gaps that match use the gap shorthand, and named areas are written as quoted rows with . for empty cells. The optional share link encodes the whole grid in the URL fragment, which stays in your browser.