flex options code example

Example 1: css all flex properties

.item {
  flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
}

Example 2: css all flex properties

.item {
  flex-shrink: 3; /* default 1 */
}

Example 3: css all flex properties

.container {
  display: flex; /* or inline-flex */
}

Example 4: css all flex properties

.container {
  flex-wrap: nowrap | wrap | wrap-reverse;
}

Example 5: css all flex properties

.item {
  align-self: auto | flex-start | flex-end | center | baseline | stretch;
}

Example 6: css all flex properties

.item {
  order: 5; /* default is 0 */
}

Tags:

Css Example