Block
InlineInlineBlock
Inlinevertical-align
for inline / table
cells.
Overflowing div
, styled position: relative
.
Shows pseudo-elements affected by scrolling while position: absolute
.
Overflowing non-absolute Element.
Placement is declared (axis)-(target): (value)
.
There are 9 combinations from three axis prefixes times three target suffixes.
justify-*
in flex sets main axisjustify-*
in grid or multi-col sets inline axisalign-*
in flex cross axisalign-*
in grid or block sets block axisplace-*
sets both axis*-self
places the element, according value*-items
places direct children*-content
places children and wrapped linesEach display type has two axis used to desribe the flow of items and its orthogonal complement.
display: block
display: inline
or
display: inline-block
flex-direction
(row/column: horizontal/vertical).flex-wrap
.