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.

posWidth

Summary

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

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.posWidth;
element.posWidth = value;

Examples

This example uses the posWidth property to increase the width of the first img object by 10 units.

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

Notes

Remarks

This property reflects the value of the Cascading Style Sheets (CSS) width attribute for positioned items. This property always returns zero for nonpositioned items because “width” has meaning only when the object is positioned. If the width attribute is not set, the posWidth property returns zero. Setting the posWidth property changes the value of the width but leaves the units designator for the property unchanged. Unlike the width property, the posWidth property value is a floating-point number, not a string.

See also

Related pages

Attributions