CSS Subgrid Playground

Grandma Marni’s three price boards on Mr. Karim’s rack: set grid-template-rows: subgrid and grid-row on each board, and the rows the browser computes show…

Why it matters

Product galleries, article lists, dashboards: wherever there is a row of cards, lining them up is a real problem. Subgrid answers it declaratively, replacing forced heights, flexbox tricks or JS that measures heights.

The key idea

Subgrid borrows the parent’s lines, it makes no new grid

Common mistakes

Try it in this playground