CSS scroll-margin-left property

Description

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

Please move the scrollbar to see the effect of margin.

Syntax

scroll-margin-left :+ve length

Property values

+ve length Default

There is no margin at the left edge of the scroll item.

scroll-margin-left: 0px;

+ve length

It specifies the left edge margin of the scroll item.

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

scroll-margin-left: 100px;

Applicable to

It applies to scroll containers.

#CSS digger
Was this article helpful?

 
×

Ctrl+D