lineHeight property
Sets or retrieves the distance between lines in the object.
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 To | All elements |
Media | visual |
Inherited | no |
Initial Value | normal |
Standards information
- CSS 2.1, Section 5.4.8
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 |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |