0

How do i force the browser to disable horizontal bar even when you are viewing your web content at 125% - 150%?

John Lee
  • 25
  • 4

2 Answers2

0

CSS:

html,body {
    overflow-x:hidden;
}

HTML:

For mobile devices, you probably need this meta tag in your <head>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
Brainfeeder
  • 2,604
  • 2
  • 19
  • 37
0

This will disable when zoomed. Add this to your CSS file.

html{overflow:hidden;}
Jonny
  • 1,319
  • 1
  • 14
  • 26
  • No, this is not the correct answer, try zooming in your browser. You still can see the horizontal scroll bar! What i need is to FORCE DISABLE it regardless if there's content on the overflow right. – John Lee Dec 08 '17 at 01:24