scroll-initial-target — initial scrolling target
The scroll-initial-target property identifies an element that determines its nearest scroll container’s initial scroll position.
CKTIS / CSS
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The scroll-initial-target property identifies an element that determines its nearest scroll container’s initial scroll position.
scroll-margin defines offsets around an element for scroll-into-view operations and scroll snapping, without changing layout spacing.
scroll-margin-block sets outsets around a scrolling target at the start and end of the block axis without changing element layout.
scroll-margin-block-end defines an outset of an element’s scroll snap area on the block-end side. It affects scrolling alignment without creating spacing in layout.
scroll-margin-block-start sets an offset for a scroll target's area on its block-start side. It does not create layout spacing; which physical side it affects depends on writing-mode.
scroll-margin-bottom adjusts an element’s bottom area boundary for scrolling into view and scroll snapping, without changing layout.
This shorthand sets target-area offsets at the start and end of the inline axis without changing element layout.
scroll-margin-inline-end sets an outset on the inline-end side of an element's scroll alignment area. It does not add an ordinary margin or change layout.
scroll-margin-inline-start specifies an offset for an element's scrolling target area on the inline-start side. It does not create layout spacing, and its physical side depends on the writing direction.
scroll-margin-left offsets the left edge of the area used to align an element during scrolling. It does not create an ordinary layout margin; it helps leave space to the left of the target.
scroll-margin-right sets the physical right-side outset of an element's area used when scrolling to it, without changing layout.
scroll-margin-top specifies the top outset of an element's area used for scrolling it into view and snapping. It does not create spacing in page layout.
The scroll-marker-group property enables a generated group of scroll markers and specifies its position and interaction mode.
scroll-padding defines a preferred viewing region inside a scroll container without changing element layout.
scroll-padding-block sets optimal viewing region offsets at the start and end of a scroll container's block axis without changing element layout.
The scroll-padding-block-end property insets the block-end edge of a scroll container’s optimal viewing region. It is logical: the physical edge depends on the writing mode.
The scroll-padding-block-start property insets the start of a scroll container's optimal viewing region. It helps leave space beside a scrolled target without adding ordinary padding.
scroll-padding-bottom insets the bottom edge of a scroll container's optimal viewing region. It helps leave room when scrolling an element into view without changing layout.
Sets logical insets for the scrolling target region at the start and end of a container’s inline axis.
The scroll-padding-inline-end property defines an inward offset for a scroll container's optimal viewing region at its inline-end edge, without changing content layout.
scroll-padding-inline-start sets an inward offset for the optimal viewing region at a scroll container's inline-start edge. It is not ordinary padding; the logical edge depends on writing direction and writing mode.
scroll-padding-left insets the left edge of a scroll container's optimal viewing region without changing element layout.
scroll-padding-right insets the right edge of a scroll container's optimal viewing region. It does not add ordinary padding.
scroll-padding-top insets the top edge of the scrolling target region without adding layout spacing.