Search notes:

CSS: position property

The value of position can be set to one of
static The box is laid out according to normal flow, top, left, bottom and right etc. properties do not apply. static is the the default value.
relative The box is laid out relative to normal flow.
absolute The box is laid out absolutely (using top, left, bottom and right properites) with respect to the containing box. Margins of an absolutely positioned box do not collapse with other margins.
fixed The box is laid out absolutely with respect to a «reference», typically a viewport.
sticky Like relative, but the reference is a scroll container's scrollport.
inherit
An element whose position value is different from static is said to be positioned. Such elements are confined in (positioned) boxes, according to the values of the four properties top, right, bottom and left.

See also

Absolutely positioned elements have no margin collapsing.
CSS properties

Index