html remove scrollbar 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: css remove scrollbars
overflow-y: hidden;
overflow-x: hidden;
Example 4: hide scrollbar html css
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
.hide-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
Example 5: css hide scrollbar
@mixin hideScrollbar {
&::-webkit-scrollbar {
width: 0 !important
}
-ms-overflow-style: none;
scrollbar-width: none;
}
Example 6: how to eliminate scroll bar in html
html { overflow-y: hidden; }