scroll-padding-block-start

Sets the padding at the start of the scroll container's 'snapping area'. It's applied to the SCROLL CONTAINER and affects how ALL items inside it are positioned when snapped.

Quick example

.main-scroller {
  /* Sets a global 100px buffer for all anchor links inside this container */
  scroll-padding-block-start: 100px;
}

Quick facts

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

Values

auto

scroll-padding-block-start 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