Force Vertical Scrollbar | CSS-Tricks

PHOTO EMBED

Mon Jun 22 2020 12:54:35 GMT+0000 (Coordinated Universal Time)

Saved by @Amna #css

html {
  overflow-y: scroll;
}
content_copyCOPY

This is invalid CSS, but it works in everything except Opera. The reason for this is to prevent “centering jumps” when navigating back and forth between pages with enough content to have a vertical scroll bar and pages that do not

https://css-tricks.com/snippets/css/force-vertical-scrollbar/