CSS-Tricks Screencasts
CSS-Tricks Screencasts
CSS-Tricks
#205: Sticky Positioning: How it Works, What Can Break It, and Dumb Tricks
19 minutes Posted Mar 15, 2021 at 9:53 pm.
0:00
19:17
Download MP3
Show notes
How it works

You apply position: sticky; to an element along with a top, left, right, or bottom threshold and it will “stick” in that position when the threshold is passed, as long as there is room …