Build a grid layout with named areas by dragging over cells. Runs entirely in your browser — nothing is uploaded.
6 answers to what people ask most about the CSS Grid Generator.
It lets you draw the layout as text: each quoted string is a row and each word names the area in that cell. Items join an area with grid-area.
One fr is one share of the free space. Columns of 1fr 2fr split the leftover width into thirds, giving the second column two of them.
The CSS spec only allows rectangular areas. That is why this tool only lets you drag rectangles and blocks overlapping ones.
A plain 1fr column won't shrink below its content's minimum width, so long words or wide images can push it wider. minmax(0, 1fr) lets it shrink evenly.
Use grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)). Columns are then added or removed as the container width changes.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue