Flex Wrap
Utilities for controlling how flex items wrap.
| Class | Properties |
|---|---|
| flex-wrap | flex-wrap: wrap; |
| flex-wrap-reverse | flex-wrap: wrap-reverse; |
| flex-nowrap | flex-wrap: nowrap; |
Wrap normally
Use flex-wrap to allow flex items to wrap:
html
<div class="flex flex-wrap">
<!-- ... -->
</div><div class="flex flex-wrap">
<!-- ... -->
</div>Wrap reversed
Use flex-wrap-reverse to wrap flex items in the reverse direction:
html
<div class="flex flex-wrap-reverse">
<!-- ... -->
</div><div class="flex flex-wrap-reverse">
<!-- ... -->
</div>Don't wrap
Use flex-nowrap to prevent flex items from wrapping, causing inflexible items to overflow the container if necessary:
html
<div class="flex flex-nowrap">
<!-- ... -->
</div><div class="flex flex-nowrap">
<!-- ... -->
</div>Responsive
To control how flex items wrap at a specific breakpoint, add a {screen}: prefix to any existing utility class. For example, use md:flex-wrap-reverse to apply the flex-wrap-reverse utility at only medium screen sizes and above.
html
<div class="flex flex-wrap md:flex-wrap-reverse">
<!-- ... -->
</div><div class="flex flex-wrap md:flex-wrap-reverse">
<!-- ... -->
</div>For more information about Gridi responsive design features, check out the Responsive Design documentation.