Element.offsetLeft (Property)

The X coordinate of the HTML element.


JScript - 3.0
Internet Explorer - 4.0
Opera - 5.0
Property/method value type:Number primitive
JavaScript syntax:IEmyElement.offsetLeft

The position of the object in pixels offset horizontally from its parent. This value is read-only.

The offsetParent property contains a reference to the parent object that the relative positions are measured with respect to.


See also:Anchor.x, Element object, Element.offsetParent, Measurement units, style.pixelLeft, style.posLeft

Property attributes:


insert figure 0044