what are the various css flex properties code example

Example 1: what does flex do

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 .

Example 2: css all flex properties

.item {
  flex-basis:  | auto; /* default auto */
}

Example 3: css all flex properties

.container {
  align-items: stretch | flex-start | flex-end | center | baseline | first baseline | last baseline | start | end | self-start | self-end + ... safe | unsafe;
}

Tags:

Css Example