CSS-Tricks Screencasts
#205: Sticky Positioning: How it Works, What Can Break It, and Dumb Tricks
Episode 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 …