Utilities for controlling how an element is positioned in the document.
Use the static utility to position an element according to the normal flow of the document:
With statically positioned elements, any offsets will be ignored and the element will not act as a position reference for absolutely positioned children.
Use the relative utility to position an element according to the normal flow of the document:
With relatively position elements, any offsets are calculated relative to the element's normal position and the element will act as a position reference for absolutely positioned children.
Use the absolute utility to position an element outside of the normal flow of the document, causing neighboring elements to act as if the element doesn't exist:
With absolutely positioned elements, any offsets are calculated relative to the nearest parent that has a position other than static, and the element will act as a position reference for other absolutely positioned children.
Use the fixed utility to position an element relative to the browser window:
With fixed positioned elements, any offsets are calculated relative to the viewport and the element will act as a position reference for absolutely positioned children:
Use the sticky utility to position an element as relative until it crosses a specified threshold, then treat it as fixed until its parent is off screen:
With sticky positioned elements, any offsets are calculated relative to the element's normal position and the element will act as a position reference for absolutely positioned children.