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.
Loading...
Related Quiz
- What are the potential pitfalls of using floats for layout purposes in modern web design?
- When designing a responsive web page, a developer notices that certain styles are not applied on smaller screens as intended. Which aspect of media queries should they inspect first?
- The CSS property float can be cleared using the value ________.
- How does CSS Houdini's Paint API enhance the capabilities of traditional CSS?
- Which CSS property controls whether an element is displayed on the page?