disable scroll bar in html code example
Example 1: hide scrollbar css
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
-ms-overflow-style: none;
scrollbar-width: none; /* Firefox */
}
Example 2: css stop scrollbar
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 */
}
Example 3: hide scrollbar html css
/* On Chrome */
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* For Firefox and IE */
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}