height property

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

Sets or retrieves the height of the object.

Syntax

Integer value = object.put_height(Variant v);Integer value = object.get_height(Variant* sHeight);

Property values

Type: VARIANT

auto (auto)

Default.  

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, which must be specified explicitly. Negative values are not allowed.

String format

height | percentage | auto

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Remarks

If you specify the height property of an img object but not the width property, the width is proportional to the height according to the dimensions of the image source file.

To perform operations on the numeric value of this property, use pixelHeight or posHeight.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

DLL

Mshtml.dll

See also

Conceptual
Measuring Element Dimension and Location with CSSOM in Internet Explorer 9
Other Resources
CSS Enhancements in Internet Explorer 6

 

 

Build date: 1/23/2012

Community Additions

Show: