CSS · Properties — CSS Scroll Snap
scroll-margin-inline
The CSS scroll-margin-inline property. Initial value: scroll-margin-inline-start,scroll-margin-inline-end. Not inherited.
Syntax
scroll-margin-inline: <length>{1,2}Example
Try it
Notes
Media: visual. Applies to: allElements. Computed value: scroll-margin-inline-start,scroll-margin-inline-end.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.