Flexbox Flashcards
flex-direction:
Sets the display direction of flex items:
row [default]
row-reverse
column
column-reverse
flex-wrap:
Specifies whether flex items should wrap or not:
wrap
nowrap (default)
wrap-reverse
flex-flow:
Shorthand for setting flex-direction then flex-wrap:
flex-flow: flex-direction flex-wrap
justify-content:
Align items on the x-axis/cross axis/horizontal axis:
flex-start [default] flex-end center space-around space-between
justify-content: flex-start
Display items at the beginning of the cross axis
justify-content: flex-end
Display items at the end of the cross axis
justify-content: center
Display items at the center of the cross axis
justify-content: space-around
Display items with space before, between, and after the items
justify-content: space-between
Display items on the cross axis with equal space between the items
align-items:
Align items on the y-axis/vertical axis:
center flex-start flex-end stretch [default] baseline
align-items: center
Display items in the middle of the y-axis
align-items: flex-start
Display items at the top of the y-axis
align-items: flex-end
Display items at the bottom of the y-axis
align-items: stretch
Stretches the items to fill the entire y-axis container (default)
align-items: baseline
Aligns items along their typographical baseline