Contents Index Topic Contents | ||
Previous Topic: pixelHeight Next Topic: pixelTop |
pixelLeft
Description
Sets or retrieves the left position of the element, in pixels. Unlike the left property, this property's value is an integer, not a string, and is always interpreted in pixels.
Syntax
object.pixelLeft[ = pixelLeft]
Settings
This read-write property can be any integer value. Setting this property changes the value of the left position without changing the units designator.
Remarks
This property reflects the value of the CSS left attribute for positioned items. This property always returns zero for nonpositioned items since left does not mean anything unless the object is positioned. Use the offsetLeft property to calculate actual positions within the document area.
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.
Applies To
CSS Attribute
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.