CSS scroll-padding-block-start Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The scroll-padding-block-start property insets the scrollport at the block-start edge. Snap and scroll targets stop inside that inset instead of flush against the start.

In horizontal writing mode, block-start is usually the top. It is the longhand paired with scroll-padding-block-end, and both are set by scroll-padding-block. It is not inherited.

Baseline Widely available.

Not deprecated. Logical longhand for the block-start scrollport inset. Widely available since September 2021 (Safari 15+). Works on any scroll container, with or without snap.

CSS Syntax

syntax.css
scroll-padding-block-start: auto | <length-percentage> | initial | inherit;

Percentages are relative to the scrollport size on the block axis.

Property Values

ValueDescriptionTry it
autoDefault. Browser chooses (usually 0px)Try it
<length>Fixed inset such as 48px or 3remTry it
<percentage>Percent of the scrollport on the block axisTry it
initialResets to autoTry it
inheritTakes the parent’s scroll-padding-block-startTry it

How to Use scroll-padding-block-start

Set it on the scroll container when content should clear the block-start edge.

  1. Create a scroll container (overflow: auto or the document).
  2. Optionally snap with scroll-snap-type and scroll-snap-align: start.
  3. Set scroll-padding-block-start to match a header height or breathing room.
  4. Scroll — start-aligned targets stop below the inset.
PieceRequired?Role
Scroll containerYesWhere the property is declared
scroll-padding-block-startYesInsets the block-start edge of the scrollport
scroll-snap-align: startHelpfulMakes the start inset easy to see
Header / chrome heightCommonMatch the inset to fixed top UI

Live Preview

Scroll the box. Panels snap to the start. Change the block-start inset and watch the gap at the top.

The amber band marks the block-start inset (top in this horizontal demo).

Scroll box
1
2
3

scroll-padding-block-start: 48px — start snap stops below the top band

CSS Examples

Each snippet focuses on scroll-padding-block-start. Use Try It Yourself for a live editor.

Example 1 — Length Inset at Block-start

Reserve space at the start edge so snapped panels clear a header band.

CSS
<style>
  .scroller {
    height: 200px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-padding-block-start: 48px;
  }

  .panel {
    height: 160px;
    scroll-snap-align: start;
  }
</style>

<div class="scroller">
  <div class="panel">1</div>
  <div class="panel">2</div>
  <div class="panel">3</div>
</div>
Try It Yourself

How It Works

  1. Create a scroller. Overflow defines the scrollport.
  2. Snap on the block axis. y mandatory locks vertical panels.
  3. Align to the start. scroll-snap-align: start aims at the block-start edge.
  4. Inset that edge. 48px keeps snapped panels below the top band.

Example 2 — Percentage of the Scrollport

Size the start inset relative to the scroller height.

CSS
<style>
  .scroller {
    height: 200px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-padding-block-start: 20%;
  }

  .panel {
    height: 160px;
    scroll-snap-align: start;
  }
</style>

<div class="scroller">
  <div class="panel">1</div>
  <div class="panel">2</div>
  <div class="panel">3</div>
</div>
Try It Yourself

How It Works

  1. Use a percentage. 20% is relative to the scrollport height here.
  2. Scales with the box. Taller scrollers get a larger start inset.
  3. Still logical. In vertical writing modes, the percentage follows the block axis.
  4. Prefer lengths for fixed headers. Match pixel chrome with px or rem.

Example 3 — Auto (Default)

With auto, the browser usually applies no extra start inset.

CSS
<style>
  .scroller {
    height: 200px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-padding-block-start: auto;
  }

  .panel {
    height: 160px;
    scroll-snap-align: start;
  }
</style>

<div class="scroller">
  <div class="panel">1</div>
  <div class="panel">2</div>
  <div class="panel">3</div>
</div>
Try It Yourself

How It Works

  1. Initial value. Omitting the property is the same as auto.
  2. Usually zero. Start-aligned panels snap flush to the block-start edge.
  3. UA freedom. A browser may pick a non-zero offset when it helps readability.
  4. Override when needed. Set a length or percentage for predictable header clearance.

Edge Cases & Pitfalls

Start insets are the usual fix for fixed headers covering snap targets.

align

Use start snap to see the effect

With scroll-snap-align: end, a block-start inset may look unused. Prefer start when testing the top inset.

logical

Not always the physical top

In vertical writing-mode, block-start is a horizontal edge. Prefer this longhand over scroll-padding-top when flow can change.

target

Set it on the scroller

Targets use scroll-margin-block-start. The container uses scroll-padding-block-start.

layout

It is not padding-block-start

Layout does not shift. Only scroll and snap aiming change inside the scrollport.

Browser Support

scroll-padding-block-start is a browser CSS property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since Sep 2021

scroll-padding-block-start

Chrome 69+, Edge 79+, Firefox 68+, Safari 15+, Opera 56+, Samsung Internet 10.1+. Internet Explorer has no support.

97% Global reach
Google Chrome 69+
Full support
Mozilla Firefox 68+
Full support
Apple Safari 15+
Full support
Microsoft Edge 79+
Full support
Opera 56+
Full support
Samsung Internet 10.1+
Full support
Internet Explorer No support
Not supported
scroll-padding-block-start Widely supported

Bottom line: Safe for modern sites. Prefer the logical longhand when writing-mode may change. Not a server runtime API.

Key Takeaways

  • Role: inset the scrollport at the block-start edge only.
  • Values: auto, length, or percentage.
  • Initial value: auto. Not inherited.
  • Tip: pair with scroll-snap-align: start to see the top inset clearly.

One line: scroll-padding-block-start reserves space at the block-start of the scrollport — usually the top.

Frequently Asked Questions

It insets the scrollport at the block-start edge. In horizontal writing mode that is usually the top, so snap and scroll targets stop below that edge.
The initial value is auto. Browsers usually treat that like 0px unless they choose another offset.
scroll-padding-top is always the physical top. scroll-padding-block-start follows the block flow, so it adapts when writing-mode is vertical.
scroll-padding-block is the shorthand for both block-start and block-end. This longhand sets only the start side.
Use it for fixed headers, top chrome, or extra space when panels snap to the start edge of a scroller.
It is Baseline and widely available since September 2021: Chrome 69+, Edge 79+, Firefox 68+, Safari 15+, Opera 56+. Internet Explorer does not support it. It is a browser CSS property, not a Node.js feature.

Next: scroll-padding-bottom

Learn the physical longhand for the bottom scrollport inset.

scroll-padding-bottom tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful