Reading Snippets [38 => CSS]

github logo ・1 min read

An element that uses Position:sticky; is positioned based on the user's scroll position.

A sticky element toggles between relative and fixed, depending on the scroll position.

It maintains the position until a given offset point is met in the viewport. After the offset position is met, the element sticks in place.

Source:W3 Schools

twitter logo DISCUSS
Classic DEV Post from May 15 '19

What are your five most used terminal commands?

community post to share our most used terminal commands.

Calvin profile image
Coding for good while seeking professional development role.