<flex>
A shorthand property that defines how a flex item grows or shrinks to fit the available space in its container.
Syntax
/* Usage Example */
.item {
flex: 1 1 300px;
/* shorthand for flex-grow, flex-shrink, and flex-basis */
}
<flex> Browser support
Widely available
Since
2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
29+
40+
10.1+
12+