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
-
Default. Default height.
-
Floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx). For more information about the supported length units, see CSS Values and Units Reference. -
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 IHTMLCurrentStyle::lineHeight attribute through the IHTMLRuleStyle::font attribute.
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|

