This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

posHeight

Summary

Reflects the value of the Cascading Style Sheets (CSS) height attribute for positioned items.

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.posHeight;
element.posHeight = value;

Examples

This example uses the posHeight property to increase the height of the first img element by 10 units.

<SCRIPT LANGUAGE="JScript">
document.all.tags("IMG").item(0).style.posHeight += 10;
</SCRIPT>

Notes

Remarks

This property reflects the value of the Cascading Style Sheets (CSS) height attribute for positioned items. This property always returns zero for nonpositioned items because “height” has meaning only when the object is positioned. If the height attribute is not set, the posHeight property returns zero. Unlike the height property, the posHeight property value is a floating-point number, not a string. Setting the posHeight property changes the value of the height but leaves the units designator for the property unchanged. For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) Document Object Model (DOM), see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.

See also

Related pages

Attributions