flex-direction
flex-wrap
flex-flow
justify-content
align-items
align-content
order
flex-grow
flex-shrink
flex-basis
flex
align-self
DEFAULT flex-direction: row
flex-direction: row (default) | column | row-reverse | column-reverseExample
....Code goes here....
DEFAULT flex-wrap: nowrap
flex-wrap: nowrap (default) | wrap-reverseExample
....Code goes here....
This is shorthand for FLEX DIRECTION and FLEX WRAP
Example
....Code goes here....
DEFAULT justify-content: flex-start
justify-content: flex-start (default) | flex-end | center | space-between | space-aroundExample
....Code goes here....
The align-items property is used to align the flex items VERTICALLY.
It focuses on the CROSS AXIS NOTE: Remember this all reverses as main-axis becomes (vertical) and cross-axis becomes (horizontal) if you set flex-direction:column
DEFAULT align-items: stretch
align-items: stretch (default) | flex-start | flex-end | center | baselineExample
Using justify-content (Main Axis) and align-items (cross Axis) you can center items perfectly horizontally and vertical.
....Code goes here....
DEFAULT align-content: stretch
align-items: stretch (default) | flex-start | flex-end | center | space-around | space-betweenExample
....Code goes here....
DEFAULT order: 0
order: any number from 0Example
....Code goes here....
Example
With flex-grow if all items have flex-grow set to 1, every child will set to an equal size inside the container. If you were to give one of the children a value of 2, that child would take up twice as much space as the others.DEFAULT flex-grow: 0
flex-grow: any number from 0Example
....Code goes here....
DEFAULT flex-shrink: 0
flex-shrink: any number from 0Example
....Code goes here....
Example
DEFAULT flex-basis: auto (if not set and flexbox items will FILL the space of the container UNLESS you set the flex items to AUTO width (
flex-basis: any number from 0 - other items FLEX to fill the space of the containerExample
....Code goes here....
Example
#example-flex-flex #flex-item-3{
....Code goes here....
DEFAULT auto/p>
Example
....Code goes here....