In MSIE, this value returns a floating point value reflecting the current value of the position attribute for the styleSheet object.
You can define other values for this according to the available keywords:
absolute
relative
fixed
normal
static
The absolute keyword applies to element objects that are positioned with respect to the document boundaries.
The relative keyword applies to element objects that are positioned with respect to a parent or containing element object.
The fixed keyword is defined in the CSS standard to mean that an element object should be positioned with respect to the display window.
The normal keyword is equivalent to the CSS defined static keyword and applies to objects whose position is controlled by the text flow. These can be block or inline structured objects.
Element objects in Netscape Navigator 4 are positioned by means of the layer capabilities of that version of the browser. Any object that has its position property set to the absolute value will need to be managed in a layer of its own, so that it can be positioned independently of any other objects in the page. These layers are accessible via the layers[] property of the document.
As of Netscape 6.0, layers are completely deprecated and have not been implemented. If you use layers at all, your pages are going to break.
The style.position property is not supported consistently across browsers. Nor is it supported according to the defined default values in the CSS standard.
The fixed keyword is not yet properly supported in MSIE.
Netscape 6.0 does not support the normal keyword although it supports the functionally identical static keyword.
Prev | Home | Next |
style.posHeight | Up | style.posLeft |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |