CSS takes a source document organized as a tree of
elements
(which can contain a mix of otherelements
andtext nodes
) andtext nodes
(which can contain text), and renders it onto a canvas such as your screen, a piece of paper, or an audio stream.
block axis
(direction lines wrap)
inline-size
from external context
(extrinsic)
block-size
from internal content
(intrinsic)
padding
/margins
on both axis
margins
collapsemin-content
,
max-content
,
fit-content
Box-sizing
controls
which box-edge to size
(content
or border
)