B.90. position

This property sets the method used to position an element on the page.

Inherited: No

See also: Section B.20bottom, Section B.55left, Section B.93right, Section B.118top, Section B.131z-index

B.90.1. Value

This property may be set to any of the following constant values:

absolute

The element can be precisely positioned within the positioning context in which it resides. In other words, a (top,left) position of (0,0) will place the element against the top-left corner of the nearest ancestor that has a position setting other than static, or the body element.

Absolute-positioned elements do not occupy any space in the normal document flow.

fixed

This setting lets you position the element just as with absolute, but when the ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.