DHTML Object Properties DHTML Objects
Sets or retrieves the bottom position of the object in pixels.
HTML |
N/A |
Script |
object.style.pixelBottom [ = iBottom ] |
iBottom |
Integer value specifying the bottom position in pixels. |
The property is read/write with no default value.
The pixelBottom property reflects the value of the cascading stylesheet ( CSS ) bottom attribute for positioned items. The property always returns zero for nonpositioned items because "bottom" is not meaningful unless the object is positioned.
Unlike the bottom property, pixelBottom's value is an integer, not a string, and is always interpreted in pixels.
For more information on how to access the dimension and location of objects on the page through the document object model, see Measuring Element Dimension and Location.
The following sample demonstrates the use of the posBottom object property to set a positioned DIV to the bottom of the client area.
oDiv.style.pixelBottom = 0;