Positioning: Sticky positioning

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


sticky is nice because the element stays in position, until the page scrolls down. When the element is about to be hidden, it’s actually always kept visible.

I made this example:

Lessons in this unit:

0: Introduction
1: Relative positioning
2: Absolute positioning
3: Fixed positioning
4: ▶︎ Sticky positioning