scroll-margin-inline-end
Widely availableSince 202197% of users
Sets the snap margin at the 'end' of an element in the text flow (usually the right side in English). It ensures a gap between the element and the edge of the scroll container when it snaps.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since September 2021. Widely available since March 2024.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0- Inherited
- No
- Applies to
- all elements
- Animation type
- byComputedValueType
Quick example
.snap-card {
/* Adds a 20px gap to the right when snapping in a horizontal slider */
scroll-margin-inline-end: 20px;
scroll-snap-align: end;
}scroll-margin-inline-end browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
69+
68+
15+
79+Mobile
69+Android
68+Android
15+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →