CSS · Properties — CSS Overflow

scroll-axis-lock

The CSS scroll-axis-lock property. Initial value: auto. Not inherited.

Syntax
scroll-axis-lock: auto | none

Example

Try it

Notes

Media: visual. Applies to: scrollContainers. Computed value: asSpecified.

More in this group

line-clamp max-lines overflow-block overflow-clip-margin overflow-inline overflow-x overflow-y scroll-behavior

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