CSS line-height Property Reference

The CSS line-height property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

CSS line-height Property Reference

The CSS line-height property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

line-height overview

The CSS line-height property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

line-height formal syntax
FieldValue
Formal syntaxnormal | <number> | <length> | <percentage>
Initial valuenormal
Applies toallElements
InheritedYes
PercentagesreferToElementFontSize
Computed valueabsoluteLengthOrAsSpecified
Animation typenumberOrLength
Mediavisual
Specification groupCSS Inline
StatusStandard

Practical examples

These declarations demonstrate valid ways to set line-height. The initial and inherit global keywords remain available even when a property-specific value is preferable.

line-height live example
CSS .reset-example { line-height: initial; } .inherit-example { line-height: inherit; } @supports (line-height: initial) { .supported { line-height: initial; } }

Description

The CSS line-height property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: line-height
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies