Home Menu

scroll-margin-top

The scroll-margin-top CSS property specifies the top edge of the scroll snap area.

Syntax

CSS

scroll-margin-top: value;

JS

object.style.scrollMarginTop = "value";

Values

<'scroll-margin-top'> = <length>
<length>

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

Initial

0

Examples

length

JS

Internal

scroll-margin

scroll-margin-block

scroll-margin-block-end

scroll-margin-block-start

scroll-margin-bottom

scroll-margin-inline

scroll-margin-inline-end

scroll-margin-inline-start

scroll-margin-left

scroll-margin-right

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms