remove scroll bar javascript code example
Example 1: hide scrollbar css
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
.scrollbar-hidden {
-ms-overflow-style: none;
scrollbar-width: none;
}
Example 2: hide horizontal scrollbar css
.x-scroll-disabled {
overflow-x: hidden;
}
Example 3: css stop scrollbar
html {
scrollbar-width: none;
-ms-overflow-style: none;
}
html::-webkit-scrollbar {
width: 0px;
}
Example 4: hide scrollbar html css
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
Example 5: how to make scrollbar hidden
overflow: hidden;