We use cookies to improve your experience. Learn more in our Privacy policy.
flex-shrink
The flex-shrink CSS property sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink.
Example
Initial value | 1 |
Applies to | flex items, including in-flow pseudo-elements |
Syntax
flex-shrink: 1;
Values
See . Negative values are invalid. Defaults to 1.
Browser support
flex-shrink | 29 | 12 | 20 | 10 | 12.1 | 9 |