nowrap (default) - Items get squished!
Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
See how flex-wrap
allows items to flow to new lines when they don't
fit. Essential for responsive layouts that adapt to different container widths.
flex-wrap
controls whether items stay on one line or wrap to new linesnowrap
- Items stay on one line and shrink (default)wrap
- Items wrap to new lines when neededwrap-reverse
- Items wrap in reverse directionalign-content
can controlflex-basis
or min-width
to control when wrapping occurs