CSS · Properties — CSS Scroll Snap

scroll-padding-inline

The CSS scroll-padding-inline property. Initial value: scroll-padding-inline-start,scroll-padding-inline-end. Not inherited.

Syntax
scroll-padding-inline: [ auto | <length-percentage> ]{1,2}

Example

Try it

Notes

Media: visual. Applies to: scrollContainers. Computed value: scroll-padding-inline-start,scroll-padding-inline-end.

More in this group

scroll-initial-target scroll-margin scroll-margin-block scroll-margin-block-end scroll-margin-block-start scroll-margin-bottom scroll-margin-inline scroll-margin-inline-end

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.

Open the course