asp.net.ph

Skip Navigation Links

posWidth Property

Language References


Sets and retrieves the width of the object in the units specified by the CSS width attribute.

Syntax

HTML N/A
Script object.style.posWidth [ = fWidth ]

Possible Values

fWidth Any valid floating-point number.

The property is read/write with no default value.

Remarks

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's value is a floating-point number, not a string.

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.

Example

The following JScript® ( compatible with ECMA-262 language specification ) example increases the width of the first IMG object by 10 units.

document.all.tags ( "IMG" ).item ( 0 ).style.posWidth += 10;
See Also

pixelWidth


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

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