flex-shrink property CSS Reference

Definition and Usage

The CSS flex-shrink property specifies the flex shrink factor of a flex item.

  • Initial 1
  • Applies to flex items, including in-flow pseudo-elements
  • Inherited no
  • Media visual
  • Computed Value as specified
  • Animatable yes, as a number, except between 0 and other values
  • Canonical order the unique non-ambiguous order defined by the formal grammar


Formal syntax: <number>
flex-shrink: 2
flex-shrink: inherit


See <number>. Negative values are invalid.


element {
  flex-shrink: 3;


Desktop browsers

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 18.0 (18.0) (behind a pref)
20.0 (20.0)
21.0-webkit Not supported 12.10 Not supported

Mobile browsers

Feature Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
Basic support NA NA Not supported 12.10 Not supported

Relative articles