asp.net.ph

Skip Navigation Links

HEIGHT Attribute | height Property

Language References


Sets or retrieves the calculated height of the object, in pixels.

Syntax


Inline <element height = iHeight [ % ] ... >
Script object.height = iHeight ]

Possible Values


iHeight Integer specifying height, in pixels.
iHeight% Value expressed as a percentage of the parent object’s height.

The property is read/write with no default value.

Remarks

Percentage values are based on the height of the parent object.

When scripting the height property, use either the pixelHeight or posHeight property for numeric manipulation of a height value.

This property specifies the calculated height of the object, in pixels. For table rows and table cells, this property has a range of 0 to 32750 pixels.

If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.

The scripting property is read/write for the IMG object, but read-only for other objects.

For more information on how to access the dimension and location of objects on the page through the Document Object Model, see Measuring Element Dimension and Location.

Applies To

EMBED   FRAME   IMG   MARQUEE   OBJECT   TABLE   VIDEO

See Also

width



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note