Javascript Reference
Categories: STYLE

javascript STYLE posHeight, posWidth

@March 15, 2008, 1:22 a.m.
posHeight, posWidthFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Specify 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. Available as a property of the IE style and runtimeStyle objects only.

 
Example
 
document.getElementById("myDIV").style.posWidth = 10.5;
 
Value

Floating-point number.

 
Default

None.


Powered by Linode.