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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access