position

Specifies how the element is positioned relative to the page or other elements.

Platform Support

IENetscapeMozillaOperaSafari
4.0+4.0+1.0+4.0+1.0+
  • IE: IE 6 does not support position:fixed.

Values

inheritInherit the value from the parent element.
staticPosition the element in the order that it occurs in the document.
relativePosition the element with offsets relative to the document flow.
absolutePosition the element at the specified coordinates.
fixedPosition 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

Related

text_css aptana_docs