aspxtreme

HEIGHT Attribute | height Property

HTML Elements/DHTML Objects   Element Attributes


Sets or retrieves the height of the object.

Syntax


HTML <ELEMENT HEIGHT = sHeight [ % ] ... >
Script object.height [ = sHeight ]

Possible Values


sHeight Integer specifying height, in pixels.
sHeight% 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

See Also

width



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

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

You can help support aspxtreme