CSS Cara mencegah gulir horizontal
html, body {
max-width: 100%;
overflow-x: hidden;
}
Greater Roadrunner
html, body {
max-width: 100%;
overflow-x: hidden;
}
/* Answer to: "disable scroll css" */
/*
You must set the height and overflow of the body, to disable
scrolling.
*/
html, body {
margin: 0;
height: 100%;
overflow: hidden
}
html {
scrollbar-width: none; /* For Firefox */
-ms-overflow-style: none; /* For Internet Explorer and Edge */
}
html::-webkit-scrollbar {
width: 0px; /* For Chrome, Safari, and Opera */
}
body {
overflow-x: hidden !important;
}
.container {
max-width: 100% !important;
overflow-x: hidden !important;
}
<body scroll="no" ></body>
or css
background-attachment: fixed;
//This codes disables scrolling and also hides the scrollbar
.noscroll{
overflow: hidden;
}