Flex shrink
Utilities for controlling how flex items shrink
Class reference
Shrink
Use .flex-shrink
to allow a flex item to shrink if needed:
Don’t shrink
Use .flex-shrink-0
to prevent a flex item from shrinking:
Responsive
To control how a flex item shrinks at a specific breakpoint, add a {screen}:
prefix to any existing utility class. For example, use md:flex-shrink-0
to apply the flex-shrink-0
utility at only medium screen sizes and above.
<div class="flex ...">
<!-- ... -->
<div class="flex-shrink md:flex-shrink-0 ...">
Responsive flex item
</div>
<!-- ... -->
</div>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5