Objects can be positioned on screen with this property. This value defines the location of the left edge of a styled element. The left 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.
The value in this property should be reflected in the Element.offsetLeft property.
This property will be useful as an alternative to the style.left 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 pixel measurement units only. This is regardless of the settings of the measurement units in the CSS attribute. Refer to the style.posLeft property for a more generalized value that can be operated on with different measurement units.
See also: | Element.offsetLeft, Layer.left, Measurement units, style.left, style.posLeft |
Prev | Home | Next |
style.pixelHeight | Up | style.pixelRight |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |