Menu Samaritan's Purse

SCROLL-PADDING-TOP

The scroll-padding-top property specifies the top edge of the snapport.

SYNTAX

CSS

scroll-padding-top: value;

JS

object.style.scrollPaddingTop = "value";

VALUES

<'scroll-padding-top'> = auto | <length-percentage>
auto

Automatically specified by the user agent.

<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

INITIAL

auto

EXAMPLES

AUTO

LENGTH

PERCENTAGE

JS

INTERNAL

scroll-padding

scroll-padding-block

scroll-padding-block-end

scroll-padding-block-start

scroll-padding-bottom

scroll-padding-inline

scroll-padding-inline-end

scroll-padding-inline-start

scroll-padding-left

scroll-padding-right

EXTERNAL

World Wide Web Consortium (W3C)