HTML & CSS · Senior · Question 4 of 75

What problem does subgrid solve?

Explanation

With grid-template-rows: subgrid a child grid inherits the parent's lines. The classic example is a row of cards whose titles, text and buttons should line up even when one card's title wraps to two lines. Without subgrid, each card aligns independently.

Further reading

Problem with a question

HTML & CSS · Senior · question 4

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz