remove scroll bar code example
Example 1: hide scrollbar css
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
.scrollbar-hidden {
-ms-overflow-style: none;
scrollbar-width: none;
}
Example 2: remove scrollbar css
.example::-webkit-scrollbar {
display: none;
}
.example {
-ms-overflow-style: none;
}
Example 3: hide horizontal scrollbar css
.x-scroll-disabled {
overflow-x: hidden;
}
Example 4: css remove scrollbars
overflow-y: hidden;
overflow-x: hidden;
Example 5: how to eliminate scroll bar in html
html { overflow-y: hidden; }
Example 6: javascript hide scrollbar
function HideScrollbar() {
var style = document.createElement("style");
style.innerHTML = `body::-webkit-scrollbar {display: none;}`;
document.head.appendChild(style);
}