position | NN 4 IE 4 CSS 2
| Inherited: No
Sets whether the element is positionable, and if so, what type of positionable element it is. The two primary types of positionable elements are set with values relative and absolute, with a third type, fixed, applicable to only some browsers. See Chapter 4 for details and examples.
CSS Syntax
    position: positionConstant
Value
Browsers and the CSS standard recognize different sets of constant values for this attribute, as shown in this table. The static value is essentially an unpositioned element, one that flows in the normal rendering sequence of the body content. A fixed-position element is positioned relative to the window (viewport), and remains in its specified location even as the content scrolls underneath it.
Value | IE/Windows | IE/Mac | NN
--- | --- | --- | ---
absolute | 4 | 4 | 4
fixed | n/a | 5 | 6
relative | 4 | 4 | 4
static | 4 | 4 | 6
Initial Value
static
Applies To
All elements.
Object Model Reference
    [window.]document.getElementById("elementID").style.position