CSS · Properties — CSS Scroll Snap

scroll-initial-target

The CSS scroll-initial-target property. Initial value: none. Not inherited.

Syntax
scroll-initial-target: none | nearest

Example

Try it

Notes

Media: noPracticalMedia. Applies to: allElements. Computed value: theSpecifiedKeyword.

More in this group

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

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