← All Quizzes
What are the values of the CSS position property?
Explanation
The CSS position property has five values: static (default, normal flow), relative (offset from normal position without leaving flow), absolute (positioned relative to nearest positioned ancestor, removed from flow), fixed (positioned relative to viewport, removed from flow), and sticky (hybrid of relative and fixed, switches based on scroll position). Understanding positioning is fundamental to CSS layout, though Flexbox and Grid have reduced the need for absolute positioning.