CSS scroll-margin-right property

Description

CSS scroll-margin-right property specifies margin at the right side of the scroll item.

Please move the scrollbar to see the effect of margin.

Syntax

scroll-margin-right :+ve length

Property values

+ve length Default

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

scroll-margin-right: 0px;

+ve length

It specifies the right edge offset of the scroll item.

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

scroll-margin-right: 100px;

Applicable to

It applies to scroll containers.

#CSS digger
Was this article helpful?

 
×

Ctrl+D