How do i force the browser to disable horizontal bar even when you are viewing your web content at 125% - 150%?
Asked
Active
Viewed 288 times
0
-
try playing with the overflow proprety of in css? – Liora Haydont Dec 07 '17 at 14:33
-
Possible duplicate of [DISABLE the Horizontal Scroll](https://stackoverflow.com/questions/17756649/disable-the-horizontal-scroll) – RajnishCoder Dec 07 '17 at 14:39
2 Answers
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