width
we care about exactly,500px
wide)1em
sometimes gives the same result as 16px
display
properties…demo:
span
with text & outlinewidth
height
display: block
display
of the element…body { display: flex; }
display: block
width
to be largefloat
body
display
valuewidth
/height
content-box
box-sizing: border-box
on all elementsDisplay:none;
(head/style) removes box & subtreeDisplay:contents;
(figure?) removes boxDisplay:list-item;
(li) generates a second ::marker
boxList-style-position
moves ::marker
in or out of primary boxdisplay
propertydiv
s when doing layoutlist-item
keyword::marker
boxdisplay
propInline
or block
flow
layoutinline
axis is not always the width
line-height
(initial normal
from font metrics)inline layout
margin-block
, padding-inline
, border-block
grid
flowinline
or block
are ignoredblock
Flow
is our default inner display valueoverflow: hidden;
flow
or flow-root
overflow: hidden
inline-block
list-item
justify-*
props apply to the ‘main’ axisalign-*
props apply to the ‘cross’ axisalign-content
onlyjustify
an individual item,[demo] change to use intrinsic sizes