css disable horizontal scroll code example
Example 1: DISABLE the Horizontal Scroll
html, body {
max-width: 100%;
overflow-x: hidden;
}
Example 2: hide horizontal scrollbar css
.x-scroll-disabled {
overflow-x: hidden;
}
Example 3: how to stop a page from scrolling horizontally
overflow-x: hidden
Example 4: css how to prevent horizontal scrolling
body {
overflow-x: hidden !important;
}
.container {
max-width: 100% !important;
overflow-x: hidden !important;
}