what does flex do

CSS
The flex CSS property sets how a flex item will grow or shrink to fit the space
available in its flex container. It is a shorthand for flex-grow , flex-shrink ,
and flex-basis .
Source

Also in CSS: