Sticky positioning
noun
say it: “STIK-ee puh-ZISH-uh-ning” /ˈstɪki pəˈzɪʃənɪŋ/
CSS positioning where an element scrolls normally until it reaches a set point, then sticks there.
What is position: sticky?
Sticky positioning lets an element scroll normally until it reaches a point, then stick there, like a table header that stays visible.
.site-header { position: sticky; top: 0; }
In a sentence
- “The table header uses sticky positioning, so the column names stay visible as you scroll.”
Level: Apprentice · More CSS terms at this level
Updated