asp.net.ph

Skip Navigation Links

pixelBottom Property

DHTML Object Properties   DHTML Objects


Sets or retrieves the bottom position of the object in pixels.

Syntax


HTML N/A
Script object.style.pixelBottom [ = iBottom ]

Possible Values


iBottom Integer value specifying the bottom position in pixels.

The property is read/write with no default value.

Remarks

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.

Example

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;
See Also
posBottom


>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note