CSS flex-shrink property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS flex-shrink determines how much the flex item should shrink to fill the remaining space relative to the other flex items.
Syntax
flex-shrink : +ve integer
Property values
+ve integerDefault
-
The flex items shrink to fill the free remaining space relative to the other items.
- Try it
flex-shrink: 1;
Applicable to
It applies to flex items.