flex-wrap
Allows flex items to spill over into multiple lines when they run out of room, rather than squishing together on a single line.
Quick example
.container {
display: flex;
flex-wrap: wrap;
/* allows items to move to the next row */
} Quick facts
Initial value
nowrapInherited
No
Applies to
flex containers
Animation type
discrete
Values
nowrapwrapwrap-reverse flex-wrap Browser Support
Widely available Since 2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
Safe to use without fallbacks.
29+
28+
9+
12+