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-shrink2912201012.19

We use cookies to improve your experience. Learn more in our Privacy policy.

×