DEV Community

Paul
Paul

Posted on

2 1

Poll: body overflow

Front-end devs: do you set "scroll" on the vertical overflow to avoid page shift?

Top comments (1)

Collapse
 
bn_geek profile image
Mohcin Bounouara

To avoid this, overflow-y: scroll is correct, but if you still have the some problem you should use it on the html tag:
html {
overflow-y: scroll;
}

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more