style.height (Property)

The height of a sizing style.


CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.height
CSS syntax:height: aHeight
Argument list:aHeightAn object height

The object space is defined by an extent rectangle that surrounds the space occupied by it on the screen. An extent rectangle is that smallest rectangle that completely encloses the item. This property specifies the height of that extent rectangle.

When used to read the height on an object, this returns a value in pixel units with the px suffix.

You can also use this property to change the height of a styled element.

The normal range of values specified in measurement units can be used. You can also assign the auto keyword to let the browser deduce the height of an object from the document source.


See also:JSSTag.height, Measurement units, style.pixelHeight, style.posHeight, style.width