CSS Flexbox notes

Container

Properties for the Parent
(flex container)

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

flex-direction

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

flex-wrap

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

justify-content

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

align-items

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

align-content

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

Items

Properties for the Children
(flex items)

order

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

flex-grow

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

flex-shrink

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

flex-basis

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

flex

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

align-self

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