css align flex code example

Example 1: css flex center

display: flex;
align-items: center;
justify-content: center;

Example 2: flex align children to side

flex-direction: column;
align-items: flex-start; //left
align-items: center; //center
align-items: flex-end; //right

Example 3: 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 4: flex css end

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

Tags:

Misc Example