javascript STYLE posBottom, posLeft, posRight, posTop
posBottom, posLeft, posRight, posTop | Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a |
Read/Write | |
For positionable elements, these properties define the 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 where the element would normally appear in the content. Most importantly, these properties' values are numeric and in the unit of measure set in the CSS bottom, left, right, or top attribute. 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. All math is in the specified units. Also contrast these properties with the pixelBottom, pixelLeft, pixelRight, and pixelTop properties, which are integer values for pixel measures only. Available as a property of the IE style and runtimeStyle objects only. |
|
Example | |
document.getElementById("myDIV").style.posLeft = document.getElementById("myDIV").style.posLeft + 1.5; |
|
Value | |
Floating-point number. |
|
Default | |
None. |
Powered by Linode.