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
, then display: list-item
display
of the element itself…body { display: flex; }
display: block
etcwidth
to be largefloat
body
display
valuewidth
/height
inline
axis is not always the width
height
insteadmargin-right
with margin-inline-end
margin-block
, padding-inline
, border-block
display
propertydiv
s when doing layoutlist-item
display::marker
boxDisplay: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 boxline-height
(initial normal
from font metrics)content-box
box-sizing: border-box
on all elementsgrid
inline
or block
, just a ‘grid item’inline
element in a block context can be ‘blockified’block
outer valueoverflow: hidden;
overflow: hidden
inline-block
[demo] change to use intrinsic sizes