CSS scroll-padding-left property

Description

CSS scroll-padding-left property specifies the padding at the left edge of the scroll container.

Please move the scrollbar to see the effect of padding.

Syntax

scroll-padding-left :+ve length

Property values

+ve length Default

There is no padding at the left edge of the scroll container.

scroll-padding-left: 0px;

+ve length

It specifies the padding at the left edge of the scroll container.

In the demo, there is 100px padding at the left edge of the scroll container.

scroll-padding-left: 100px;

Applicable to

It applies to scroll containers.

#CSS digger
Was this article helpful?

 
×

Ctrl+D