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.

It is documented as part of the CSS Scroll Snap specification.

/* Usage 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;
}

/* Syntax */
scroll-padding-block-end: auto;

/* Global values */
scroll-padding-block-end: inherit;
scroll-padding-block-end: initial;
scroll-padding-block-end: revert;
scroll-padding-block-end: revert-layer;
scroll-padding-block-end: unset;
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.

69+
68+
15+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC