what does display: flex do? 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: flexbox css

.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 3: flexbox css

.container {
  flex-flow: column wrap;
}

Example 4: display flex css

.class {
  display: flex;
}

/* use display: flex to turn CSS element into a flexbox */

Tags:

Misc Example