CSS · Properties — CSS Scroll Snap
scroll-padding-block
The CSS scroll-padding-block property. Initial value: scroll-padding-block-start,scroll-padding-block-end. Not inherited.
Syntax
scroll-padding-block: [ auto | <length-percentage> ]{1,2}Example
Try it
Notes
Media: visual. Applies to: scrollContainers. Computed value: scroll-padding-block-start,scroll-padding-block-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.