HTML & CSS · Junior · Question 72 of 75
Why do flex items in a row have equal height by default?
- ✓Correct answer: The default
align-items: stretchstretches them to the line's height - 2Flexbox always sets
height: 100% - 3It's a browser bug
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.