About 10796 letters

About 54 minutes

#CSS Position

In CSS, the position property is used to specify how an element is positioned, determining its behavior in the document flow and what it is positioned relative to.

ValueDescriptionRemoved from Document Flow
staticDefault value. Elements are laid out in the normal document flow.No
relativeOffsets the element relative to its normal position; often used as a reference for absolute positioning.No
absolutePositioned relative to the nearest non-static ancestor.Yes
fixedPositioned relative to the viewport (does not move when scrolling).Yes
sticky“Sticks” to a defined position during scroll.-

static

absolute

fixed

sticky

Updated: 5/30/2025

Author: PlanC

Created: 5/30/2025