0

I'm disabling the scroll-bar in some cases using:

overflow: hidden;

But, whenever my scrollbar is disabled, the page shifts to the right a little. So is there a way to avoid that shifting?

Aiguo
  • 3,416
  • 7
  • 27
  • 52
  • 1
    https://stackoverflow.com/questions/1417934/how-to-prevent-scrollbar-from-repositioning-web-page – Scott Weaver Jun 05 '17 at 22:50
  • @sweaver2112 I can't disable the scrolling with overflow-y: scroll; But I want to disable the scrolling which is achieved by overflow: hidden; – Aiguo Jun 05 '17 at 22:54

0 Answers0