css flex boxes code example

Example 1: css flexbox syntax

Display: flex 
Flex-direction: row | row-reverse | column | column-reverse
align-self: flex-start | flex-end | center | baseline | stretch
justify-content: start |  center | space-between | space-around | space-evenly

Example 2: css all flex properties

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

Example 3: css all flex properties

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

Example 4: 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;
}

Example 5: css all flex properties

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

Tags:

Html Example