HTML & CSS · Junior · Question 72 of 75

Why do flex items in a row have equal height by default?

Explanation

That is why cards in a row line up nicely. Set align-items: flex-start (or align-self on one item) to let items keep their content height.

Further reading

Problem with a question

HTML & CSS · Junior · question 72

Test yourself

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

Take this quiz