property
line-height — CSS reference
Controls line box sizing in inline layout. Initial normal; inherited. A unitless number inherits as a multiplier of each element’s own font size; a computed length can inherit unchanged. Actual line boxes may grow to accommodate inline content.
Formal Syntax & Structure
css syntaxcss
normal | <number [0,∞]> | <length-percentage [0,∞]>Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{font-size:20px}#a{line-height:1.5}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>