style.posTop (Property)

A measurement unit independent positioning control property.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyStyle.posTop
CSS syntax:pos-top: aValue
Argument list:aValueA positioning value

Objects can be positioned on screen with this property. This value defines the location of the top edge of a styled element. The top edge includes padding, borders and margins around the object as well as its content. The position is located with reference to the next outermost (parent) container.

This property will be useful as an alternative to the style.top property which includes the measurement units when a value is read back from it.

The value in this property will be an integer defined in the measurement units defined by the CSS attribute. Refer to the style.pixelTop property for a more specialized value that can be operated on unambiguously in pixel measurement units.

See also:Element.offsetTop, Layer.top, Measurement units, style.pixelTop, style.top