flex-wrap
Determines whether items should stay on a single line or wrap.
- nowrap (default): Everything on one line, even if it overflows.
- wrap: Items move to a new line if they don’t fit.
- wrap-reverse: Same as wrap, but wrapping occurs in reverse order.
Example
With this dynamic example you can see the different arrangements of the child elements by modifying the flex-wrap property in the selector.
ResultLive
html
css