concept

line-box — CSS reference

A line box groups the inline fragments assigned to one line. Its block-axis size accounts for inline alignment and line-height, including participating inline boxes. Floats can shorten available line space. DOM geometry APIs expose fragments and enclosing rectangles, not an independent DOM node for each line. A forced break can contribute a zero-width rectangle, so rectangle count need not equal line count.

Formal Syntax & Structure

css syntaxcss
Line construction within inline formatting (concept).

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS flow layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{font:16px/20px sans-serif} #p{width:240px;background:#e6eef2} .tile{background:#c2e4d5} #a,#b{box-sizing:content-box}#p{font:16px/24px monospace}#a{display:inline}</style><body><div id="p"><span id="a">First<br>Second</span></div></body></html>
CSS Reference