top
Expand Minimize

lineHeight property

Sets or retrieves the distance between lines in the object.

CSS 2.1, Section 5.4.8Internet Explorer 9

 

Syntax

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

Property values

Type: VARIANT

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 | number | length | percentage | inherit

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Valuenormal

Standards information

Remarks

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 IHTMLCSSStyleDeclaration::lineHeight attribute through the IHTMLCSSStyleDeclaration::font attribute.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft