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.

pixelTop

Summary

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

Property of css/cssom/propertiescss/cssom/properties

Syntax

var result = element.pixelTop;
element.pixelTop = value;

Notes

Remarks

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

See also

Related pages

Attributions