CSS scroll-margin-inline Property Reference

The CSS scroll-margin-inline property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

CSS scroll-margin-inline Property Reference

The CSS scroll-margin-inline property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

scroll-margin-inline overview

The CSS scroll-margin-inline property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

scroll-margin-inline formal syntax
FieldValue
Formal syntax<length>{1,2}
Initial valuescroll-margin-inline-start, scroll-margin-inline-end
Applies toallElements
InheritedNo
Percentagesno
Computed valuescroll-margin-inline-start, scroll-margin-inline-end
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Scroll Snap
StatusStandard

Practical examples

These declarations demonstrate valid ways to set scroll-margin-inline. The initial and inherit global keywords remain available even when a property-specific value is preferable.

scroll-margin-inline live example
CSS .reset-example { scroll-margin-inline: initial; } .inherit-example { scroll-margin-inline: inherit; } @supports (scroll-margin-inline: initial) { .supported { scroll-margin-inline: initial; } }

Description

The CSS scroll-margin-inline property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: scroll-margin-inline
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies