CSS scroll-padding-bottom Property Reference
The CSS scroll-padding-bottom property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
scroll-padding-bottom overview
The CSS scroll-padding-bottom property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | auto | <length-percentage> |
| Initial value | auto |
| Applies to | scrollContainers |
| Inherited | No |
| Percentages | relativeToTheScrollContainersScrollport |
| Computed value | asSpecified |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | CSS Scroll Snap |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set scroll-padding-bottom. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
scroll-padding-bottom: initial;
}
.inherit-example {
scroll-padding-bottom: inherit;
}
@supports (scroll-padding-bottom: initial) {
.supported {
scroll-padding-bottom: initial;
}
}