Answers for "how to stop horizontal scrolling in css"

5

DISABLE the Horizontal Scroll

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
Posted by: Guest on November-24-2019
0

how to remove horizontal scrolling

/* this works for vertical scrolling also

this is useful for those who can't use overflow: hidden or any other solution
because the css on the website changes in someway */

::-webkit-scrollbar:horizontal {
  display: none;
}
Posted by: Guest on April-19-2021

Code answers related to "how to stop horizontal scrolling in css"

Browse Popular Code Answers by Language