grid-template-areas Playground

Mr. Karim’s plan for Grandma Marni’s new stall: write or paint the grid-template-areas map, then see what the browser says to an L-shaped area, rows of…

Why it matters

The most readable way to lay out a page skeleton: the CSS looks like the layout, and the phone version is just a rewritten map. But the "every area must be a rectangle" rule often leaves people wondering why the grid collapsed entirely.

The key idea

Draw the layout as a map, but every area must be a rectangle

Common mistakes

Try it in this playground