CSS Grid Generator
v1.0The CSS Grid Generator lets you build a grid visually and copy the CSS. Set the number of columns and rows, and tune each track to fr, px, %, auto or a minmax().
The preview above the code is the real grid and updates as you type. Help popovers on the track, gap and alignment controls explain the CSS, and a first-run hint points you to painting your first area.
Areas are painted, not typed. Drag across cells to create a named rectangle (area-1, area-2...), then rename it inline, resize it, move it or delete it. Drag an area's right or bottom edge to re-span it, or focus it and use the arrow keys to move it and Shift with the arrows to resize. Painting works from the keyboard too: focus a cell, press Enter for one corner and Enter again for the opposite one. An area that overlaps another replaces it, shrinking the grid drops areas that no longer fit, and names are cleaned up into valid CSS identifiers with duplicates avoided.
You can also drag the line between two tracks in the preview to resize them. Three or more identical tracks are written as repeat(N, X). Container alignment (justify-items, align-items, justify-content, align-content) applies live and is written to the CSS only when it differs from the default. Each track can name its grid lines.
The CSS tab gives the full container rule, with grid-template-areas and one grid-area rule per named area. The HTML tab gives a matching skeleton. Both copy in one click. Presets are Holy Grail, Sidebar, a blank twelve-column grid and Responsive cards, which uses repeat(auto-fit, minmax(220px, 1fr)). Reset returns to a clean three-by-two grid.
Your grid is remembered between visits, and Share puts the whole thing in a link. Nothing is uploaded.