Name
posHeight, posWidth — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
The numeric height and width of the element in the units set by the
CSS positioning-related attributes. Use these properties for
calculation instead of properties such as height
and width
, which return strings including units.
All math is in the specified units. Also contrast these properties
with the pixelHeight
and
pixelWidth
properties, which are integer values
for pixel measures only.
Example
document.all.myDIV.style.posWidth = 10.5
Value
Floating-point number.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.