0

Holy Grail CSS Grid Layout — Ready Code

Design CSS Grid layouts visually: set columns, rows and gap, then type area names into cells to build grid-template-areas — with a live preview and copyable CSS and HTML.

Type a name into any cell below; cells with the same name merge into one grid-template-areas region.

Processing... 0%

Result

This page opens the grid generator preloaded with the holy grail layout: three columns and three rows, with header and footer spanning the full width and a nav/main/aside row in between. The header row uses auto height, the middle row fills the remaining space, and the two side columns are fixed at 200px while the main column takes the rest.

The holy grail layout earned its name because it was genuinely hard to build reliably before CSS Grid — years of float hacks, table layouts and absolute positioning tried to fake this exact shape. With grid-template-areas it collapses to five named regions and a handful of track sizes, which is why it remains the standard first example for teaching CSS Grid.

Every number and gap on this page is still live: shrink the side columns, add a fourth row, or rename an area and the preview and the copyable CSS update immediately. Copy the CSS and HTML blocks straight into your project — everything runs locally in your browser, nothing is uploaded.