Problem Statement
Explain all position types in CSS.
Explanation
`static` (default, normal flow), `relative` (offset from normal flow), `absolute` (removed from flow, relative to ancestor), `fixed` (relative to viewport), and `sticky` (hybrid between relative and fixed). Each serves a layout purpose for control and alignment.
Code Solution
SolutionRead Only
div { position: relative; top: 10px; }Practice Sets
This question appears in the following practice sets:
