scroll-padding-inline-end
Sets the snap padding at the 'end' of the scroll container in the text flow (usually the right side). Applied to the container, it affects where all items inside will snap.
It is documented as part of the CSS Scroll Snap specification.
Syntax
/* Usage Example */
.horizontal-gallery {
/* Ensures 20px of space on the right side of the container during snaps */
scroll-padding-inline-end: 20px;
}
/* Syntax */
scroll-padding-inline-end: auto;
/* Global values */
scroll-padding-inline-end: inherit;
scroll-padding-inline-end: initial;
scroll-padding-inline-end: revert;
scroll-padding-inline-end: revert-layer;
scroll-padding-inline-end: unset;
scroll-padding-inline-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.
69+
68+
15+
79+