Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does position: sticky do?

  1. A Fixes the element to the viewport permanently
  2. B Behaves as relative until a scroll threshold is reached, then as fixed within its parent
  3. C Removes the element from the document flow
  4. 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.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as