Sets or retrieves the bottom position of the object in the units specified by the cascading stylesheet ( CSS ) bottom attribute.
HTML |
N/A |
Script |
object.style.posBottom [ = iBottom ] |
iBottom |
Any valid floating-point number. |
The property is read/write with no default value.
This property reflects the value of the cascading stylesheet ( CSS ) bottom attribute for positioned items. This property always returns zero for nonpositioned items because "bottom" is not meaningful unless the object is positioned.
Setting this property changes the value of the bottom position but leaves the length units designator for the property unchanged.
Unlike the bottom property, the property value is a floating-point number, not a string.
For more information on how to access the dimension and location of elements 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.posBottom = 0;
pixelBottom