<flex>
Widely availableSince 201797% of users
A shorthand property that defines how a flex item grows or shrinks to fit the available space in its container.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since March 2017.
See how modern your own CSS is.Check your CSS →
Quick example
.item {
flex: 1 1 300px;
/* shorthand for flex-grow, flex-shrink, and flex-basis */
}<flex> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
29+
40+
10.1+
12+Mobile
29+Android
40+Android
10.3+iOS