-
Which of the following position is based on the user’s scroll position?
-
- static
- relative
- fixed
- sticky
- None of these
Correct Option: D
An element with position: sticky, is positioned on the user’s scroll position. A sticky element toggles between relative and fixed, depending on scroll position, It is positioned relative until a given offset position is met in the viewport, then it “sticks” in place.