DEV Community

Paul
Paul

Posted on

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;
}