Loading...
p {
line-height: 1.5;
margin-block: 24px;
}p {
line-height: 1.5;
margin-block: 1.5em;
margin-block: 1lh;
}1lh spaces paragraphs by exactly one line of text, and the 'em' line acts as a fallback.
lh inside line-height, where it refers to the parent's line height.lh or rlh instead of hardcoded pixel values.line-height itself stays unitless, so lh follows font size changes.em fallback is declared first where the units are unsupported.lh is the element's own computed line height, while rlh is the line height of the root element.
No. 'em' equals the font size, while lh equals the line height, which is usually larger.
Yes. A height of 1lh makes an icon exactly as tall as one line of the surrounding text.