<flex>

A shorthand property that defines how a flex item grows or shrinks to fit the available space in its container.

Quick 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.

Safe to use without fallbacks.

29+
40+
10.1+
12+
ESC