line-height

The line-height property sets the distance between two adjacent lines' baselines.

line-height: normal | <number> | <length> | <percentage> | inherit
Initial: normal
Applies To: all elements
Inherited: yes
Percentages: refer to the font size of the element itself
Media: visual

Values

Δ

line-height: value;
 
Value: Description:
inherit Takes the same computed value as the property for the element's parent
length Horizontal or vertical measurements: em | ex | px | in | cm | mm | pt | pc
normal "Reasonable" value based on the font of the element
number Number multiplied by the element's font-size
percentage Percentage multiplied by the element's font-size

DOM

Δ

[window.]document.getElementById("element-id").style.lineHeight = "line-height";

Example | Values | length

Δ

Example | Values | normal

Δ

Example | Values | number

Δ

Example | Values | percentage

Δ

Example | DOM

Δ

References

Δ