Live tool
Define columns and rows, set gaps and track sizes, and watch the grid update live. Ideal for learning grid-template syntax or prototyping a page layout.

fr is a fraction of the free space in the grid container after fixed tracks and gaps are subtracted.
Yes. Enter values such as minmax(120px, 1fr) in any track field.
| Price | Free |
|---|---|
| Category | Layout & CSS |
| Works in | Any modern browser, on desktop or mobile |
| Privacy | Runs locally. Your input is never sent to us. |
Reports with a screenshot get fixed fastest.