posWidthposWidth*
*



Contents  *



Index  *Topic Contents
*Previous Topic: posTop
*Next Topic: protocol

posWidth

Description

Sets and retrieves the width of the element in the units specified by the CSS width attribute. Unlike the width property, this property's value is a floating-point number, not a string.

Syntax

object.posWidth[ = posWidth]

Settings

This read-write property takes any valid floating-point number. Setting this property changes the value of the width but leaves the units designator for the property unchanged.

Remarks

For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.

Example

The following JScript example increases the width of the first IMG element by 10 units.

document.all.tags("IMG").item(0).style.posWidth -= 10;

Applies To

style

CSS Attribute

width

See Also

pixelWidth


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.