This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pixelLeft

Summary

Reflects the value of the Cascading Style Sheets (CSS) left attribute.

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.pixelLeft;
element.pixelLeft = value;

Notes

Remarks

The pixelLeft property reflects the value of the Cascading Style Sheets (CSS) left attribute. Use the offsetLeft property to calculate actual positions within the document area. Unlike the left property, the pixelLeft value is an integer, not a string, and is always interpreted in pixels.

See also

Related pages

Attributions