concept

Line box construction — CSS reference

An inline formatting context distributes inline content into line boxes. Available inline size and break opportunities determine fragments; line-height and inline alignment influence line-box block size. A wrapped inline element can therefore have multiple rectangles. The example uses equal line heights and breakable text; replaced elements and vertical-align can increase line height.

Formal Syntax & Structure

css syntaxcss
line-height: 24px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>line-box-construction</title><style>body{margin:8px;font:16px/1.5 sans-serif}*{box-sizing:border-box}#a{width:110px;font:16px/24px monospace}#b{white-space:normal}</style><body><p id="a"><span id="b">alpha beta gamma delta epsilon</span></p></body></html>
CSS Reference