What does position: sticky do?
- A Fixes the element to the viewport permanently
- B Behaves as relative until a scroll threshold is reached, then as fixed within its parent
- C Removes the element from the document flow
- D Attaches the element to the page footer
Answer
Behaves as relative until a scroll threshold is reached, then as fixed within its parent
Sticky requires a threshold such as top: 0 to do anything, and is broken by an ancestor with overflow hidden or auto.





