HTML & CSS · Junior · Question 29 of 75
What does flex-wrap: wrap do?
- ✓Correct answer: Allows items to wrap onto a new line when they don't fit
- 2Shrinks the items so they all fit on a single line
- 3Wraps each flex item in an extra wrapper block
Explanation
By default flex-wrap: nowrap - all items line up on one line and shrink (if flex-shrink allows) or overflow the container. With wrap, items move onto new lines. The alignment of those lines is set by align-content.