When using position: sticky;, which two properties must be set for the sticky behavior to work effectively?

  • top
  • left
  • position
  • display
The correct options for the position: sticky; to work effectively are position: sticky; and top. The position property must be set to sticky, and the top property should be defined to specify the position where the element becomes sticky.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *