All CSS3 flex property with example

Without Flex

Display Flex

display: flex;

Flex Order

order: 1; order: 2; order: 3;

Flex Direction

flex-direction: row; flex-direction: row-reverse; flex-direction: column; flex-direction: column-reverse;

Flex Wrap

flex-wrap: nowrap; flex-wrap: wrap; flex-wrap: wrap-reverse;

Flex Grow

flex-grow: 2; flex-grow: 3; flex-grow: 4;

Flex Shrink

flex-shrink: 2; flex-shrink: 3; flex-shrink: 4;

Flex Flow

flex-flow: row-reverse wrap-reverse;

Flex Basis

flex-basis: 40px; flex-basis: 200px; flex-basis: 120px;

Justify Content

justify-content: start; justify-content: flex-end; justify-content: center; justify-content: space-between; justify-content: space-around; justify-content: space-evenly;

Align Items

align-items: flex-start; align-items: flex-end; align-items: center;

Align Self

align-self: flex-start; align-self: flex-end;

Align Content

align-content: space-between; align-content: center;