subgrid

A CSS Grid value that lets a nested grid use its parent grid's tracks instead of sizing its own, so content in separate cards lines up.

In more detail

Without it, each card sizes its header, body and footer rows alone and they misalign. With grid-template-rows: subgrid and a matching row span, all cards share the parent's rows, so every footer sits on the same line. Subgrid can apply to rows, columns or both.

Related terms

Taught in

References