Search⌘ K

Equal Height Subgrid Layout

Explore how to implement nested CSS grids using display subgrid to align child grid rows perfectly with parent rows, creating equal-height responsive columns. This lesson helps you understand subgrid usage, achieve multi-level grid alignment, and solve layout challenges using only CSS.

Problem description

A parent .parent-grid defines two columns and multiple rows of equal height. Each cell contains a .child-grid that should ...