The scroll-margin-block-start property defines the margin in the block direction between the snap position and the container. When the user stops scrolling, the content will automatically align itself, considering the specified distance between the start of the child element and the container edge. For this property to work properly, two things are required: both scroll-margin-block-start and scroll-snap-align properties must be set on the child elements, while the scroll-snap-type property must be set on the parent element.
Thank you for visiting! Adding privacy policy.
© 2024 All rights reserved.
Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.