scroll-margin-block-end
Sets the margin between the end of an element and the edge of its scroll container specifically for 'scroll snapping'. This ensures that when an element snaps into view, it doesn't bump directly against the edge.
Quick example
.card {
/* Keeps a 30px 'buffer' at the end of the element when it snaps into view */
scroll-margin-block-end: 30px;
scroll-snap-align: end;
} Quick facts
Initial value
0Inherited
No
Applies to
all elements
Animation type
byComputedValueType
scroll-margin-block-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.
Safe to use without fallbacks.
69+
68+
15+
79+