CSS scroll-margin-inline-end property

Description

CSS scroll-margin-inline-end property specifies margin at the end side of the scroll item. Please move the scrollbar to see the effect of margin.

The selection of end side depends upon the writing-mode.

  • The end side represents right side for the horizontal-tb writing-mode.

  • The end side represents bottom or top side for the vertical-lr or vertical-rl writing-mode respectively.

Syntax

scroll-margin-inline-end :+ve length

Property values

+ve length Default

There is no margin at the end side of the scroll item.

scroll-margin-inline-end: 0px;

+ve length

It specifies the end edge offset of the scroll item.

In the demo, there is 100px margin at the end edge of the scroll item.

scroll-margin-inline-end: 100px;

Applicable to

It applies to scroll containers.

#CSS digger
Was this article helpful?

 
×

Ctrl+D