CSS scroll-margin-inline-start Property
The scroll-margin-inline-start property is used to set all the scroll margins to the start of the inline dimension of a scroll element at once.The selection of the start side depends upon the writing mode. The start side is left side for horizontal-tb writing mode and top or bottom side for the verticle-lr and verticle-rl writing mode respectively.
horizontal-tb stands for horizontal top-to -bottom, verticle-rl is the verticle right-to-left, and verticle-lr is the verticle left-to-right.
Property values: The scroll-margin-inline-start property accepts two properties mentioned above and described below.
- length: This property refers to the values defined with length units like “em”, “px”, “rem”, “vh”, etc.
- Global_Values: This property refers to the global values like inherit, initial, unset, etc.
Note: The scroll-margin-inline-start does not accept percentage value as the length.
Example: In this example, you can see the effect of scroll-margin-inline-start by scrolling to a point partway between the two of the interfaces of the example’s content.
Note: Internet Explorer and Safari are not Supported.