Javascript Reference
Categories: STYLE

javascript STYLE pixelBottom, pixelLeft, pixelRight, pixelTop

@March 15, 2008, 1:22 a.m.
pixelBottom, pixelLeft, pixelRight, pixelTopFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

For positionable elements, these properties define the pixel position of the edges of an element's box (content plus padding, border, and/or margin) relative to the corresponding edges of the next outermost block content container. When the element is relative-positioned, the measure is based on the edges of the inline location of where the element would normally appear in the content. Use these properties for calculation (including path animation) instead of the bottom, left, right, and top properties, which store their values as strings with the unit names. Available as a property of the IE style and runtimeStyle objects only.

 
Example
 
document.getElementById("myDIV").style.pixelLeft++;
 
Value

Integer.

 
Default

None.


Powered by Linode.