Tested tool guide
Tested browser tools
Checked August 16, 2026
What CSS Grid Generator does, with a checked example
Lay out the tracks first, then name the regions: CSS Grid Generator converts those visual choices into CSS for an explicit grid container. Configure column and row track lists, choose the gutter size, and assign names across cells; the export records them as grid-template-columns, grid-template-rows, gap, and grid-template-areas. The frequent surprise is that an area name does not place an element automatically. A child still needs a matching grid-area value, or another grid placement rule, to occupy that region.
Worked example
A concrete input and expected output from the current implementation.
Input
Columns: 1fr 2fr
Rows: 48px 120px
Gap: 8px
Areas:
header header
nav main
->
Expected output
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: 48px 120px;
gap: 8px;
grid-template-areas:
"header header"
"nav main";
The two area rows each contain two tokens, matching the two columns. Header occupies both cells in the first row, while nav and main occupy the left and right cells of the second row; gap creates an 8px row gutter and an 8px column gutter.