Specifies how the element is positioned relative to the page or other elements.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 4.0+ | 4.0+ | 1.0+ | 4.0+ | 1.0+ |
---|---|---|---|---|
|
Values
inherit | Inherit the value from the parent element. |
static | Position the element in the order that it occurs in the document. |
relative | Position the element with offsets relative to the document flow. |
absolute | Position the element at the specified coordinates. |
fixed | Position the element in a fixed position as the page scrolls. |
Example
For a demonstration of the position attribute, see the demo page on quirksmode:
http://www.quirksmode.org/css/position.html
Availability
W3C CSS2