property

Line height step — CSS reference

Proposed rhythmic sizing property rounds line box heights upward to multiples of a step. It does not merely set line-height. Use a consistent ordinary line-height for browsers without it; tall inline content can still disrupt the rhythm.

Formal Syntax & Structure

css syntaxcss
line-height-step: 24px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>line-height-step</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{font:16px/24px sans-serif;line-height-step:24px}</style><body><p id="a">First line<br>Second line</p></body></html>
CSS Reference