scroll-padding-inline-start
Sets the snap padding at the 'start' of the scroll container in the text flow (usually the left side). Keeps snapped items from hugging the left edge.
It is documented as part of the CSS Scroll Snap specification.
Syntax
/* Usage Example */
.product-slider {
/* Keeps products 40px away from the left edge of the scroller when they snap */
scroll-padding-inline-start: 40px;
}
/* Syntax */
scroll-padding-inline-start: auto;
/* Global values */
scroll-padding-inline-start: inherit;
scroll-padding-inline-start: initial;
scroll-padding-inline-start: revert;
scroll-padding-inline-start: revert-layer;
scroll-padding-inline-start: unset;
scroll-padding-inline-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.
69+
68+
15+
79+