CSS scrollbar-gutter Playground

Grandma Marni’s two price boards with the same CSS, one short list and one long: set overflow-y and scrollbar-gutter, then the browser measures the…

Why it matters

A page or panel that "jumps" sideways when the scrollbar appears is a layout shift: text rewraps, buttons move, and it feels cheap, especially between pages. One line of CSS removes it, without guessing each OS’s scrollbar width.

The key idea

A classic scrollbar takes its width from the content

Common mistakes

Try it in this playground