scroll-padding-block-end

Sets the padding at the end of the scroll container's 'snapping area'. While 'scroll-margin' is set on the items, 'scroll-padding' is set on the container itself.

Quick example

.grid-scroll-container {
  /* Ensures all items in this grid have a 40px buffer at the bottom when they snap */
  scroll-padding-block-end: 40px;
  scroll-snap-type: y mandatory;
}

Quick facts

Initial value
auto
Inherited
No
Applies to
scroll containers
Animation type
byComputedValueType

Values

auto

scroll-padding-block-end Browser Support

Widely available Since 2020 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.

Safe to use without fallbacks.

69+
68+
15+
79+
ESC