css all flex properties code example

Example 1: css all flex properties

.container {
  justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
}

Example 2: css all flex properties

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

Example 3: css all flex properties

.container {
  align-content: flex-start | flex-end | center | space-between | space-around | space-evenly | stretch | start | end | baseline | first baseline | last baseline + ... safe | unsafe;
}

Example 4: css all flex properties

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

Example 5: css all flex properties

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

Example 6: css all flex properties

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

Example 7: css all flex properties

.container {
  flex-direction: row | row-reverse | column | column-reverse;
}

Example 8: css all flex properties

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

Example 9: css all flex properties

.item {
  flex-grow: 4; /* default 0 */
}

Example 10: css all flex properties

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

Tags:

Html Example