Free CSS Grid Playground

Learn and build CSS Grid layouts with our free interactive tool. Presets and code export.

Frequently Asked Questions

When should I use Grid vs Flexbox?

Use Grid for 2D layouts (rows AND columns together). Use Flexbox for 1D layouts (either row OR column). Grid is for page structure; Flexbox is for component layouts.

What are grid template areas?

A visual way to define layouts using named areas like 'header header' 'sidebar main'. Assign areas to children with grid-area: header. Great for readable, maintainable layouts.

What does fr unit mean?

fr means 'fraction of available space.' 1fr 2fr divides space into 3 parts—first column gets 1 part, second gets 2. It's flexible like percentages but smarter.