Skip to main content

One doc tagged with "relative vs fixed"

View all tags

Position sticky

Learn about position: sticky, how it behaves like relative until a scroll threshold is met, and then pins itself like position: fixed, making it perfect for dynamic section headers and tables.