Home » CSS » Css miscellaneous » Question
  1. Which of the following position is based on the user’s scroll position?
    1. static
    2. relative
    3. fixed
    4. sticky
    5. 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.



Your comments will be displayed only after manual approval.