how does flex work css 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-shrink: 3; /* default 1 */
}
Example 3: css all flex properties
.item {
order: 5; /* default is 0 */
}
Example 4: css flex
.item {
align-self: auto | flex-start | flex-end | center | baseline | stretch;
}