- How do I restrict horizontal scroll?
- How do I make the scroll bar horizontal?
- How do I hide the horizontal scrollbar?
How do I restrict horizontal scroll?
Since horizontal scrolling is generally a bad idea, this rule can come in handy. To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.
How do I make the scroll bar horizontal?
Horizontal scrolling can be achieved by clicking and dragging a horizontal scroll bar, swiping sideways on a desktop trackpad or trackpad mouse, pressing left and right arrow keys, or swiping sideways with one's finger on a touchscreen.
How do I hide the horizontal scrollbar?
To hide the scrollbar in WebKit-based browsers, you have to use the ::-webkit-scrollbar pseudo selector. ::-webkit-scrollbar is a pseudo-element in CSS used by developers to modify the look of a browser's scrollbar. With the ::-webkit-scrollbar pseudo selector, there's a wide range of things you can do to a scrollbar.