lineHeight property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the distance between lines in the object.

CSS 2.1, Section 5.4.8


Integer value = object.put_lineHeight(Variant v);Integer value = object.get_lineHeight(Variant* sHeight);

Property values


normal (normal)

Default. Default height.

height (height)

Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px). For more information about the supported length units, see CSS Values and Units Reference.

percentage (percentage)

Integer, followed by a percent sign (%). The value is a percentage of the height of the parent object.

String format

normal | height | percentage

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Standards information


Line height is the distance between the descender of the font and the top of the internal leading of the font.

If a formatted line contains more than one object, the maximum line height applies. In this case, negative values are not allowed.

Microsoft Internet Explorer 3.0 supports the line-height attribute through the font attribute.


Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003






Build date: 1/23/2012