scroll-padding-top
Widely availableSince 202197% of users
Sets a fixed amount of padding on the top of a scroll container that specifically interacts with scroll snapping. Often applied to the root element to account for sticky headers.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2021. Widely available since October 2023.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- scroll containers
- Animation type
- byComputedValueType
Quick example
html {
/* Global safe zone for all scroll-to-element actions (like anchor links) */
scroll-padding-top: 80px;
}Values
autoscroll-padding-top browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
69+
68+
14.1+
79+Mobile
69+Android
68+Android
14.5+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →