.class {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.class::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
/* hide scrollbar but allow scrolling */
body {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
overflow-y: scroll;
}
body::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
}
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0; /* Remove scrollbar space */
background: transparent; /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space /
background: transparent; / optional: just make scrollbar invisible /
}
/ optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
.container {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.container::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
// Sass Mixing
@mixin hideScrollbar {
&::-webkit-scrollbar {
width: 0 !important
}
-ms-overflow-style: none;
scrollbar-width: none;
}
//Hide scrollbar completly (vertical & horizontaly) scrollbar but still able to scroll
/* replace ".container" with your "id" or "className" */
.container {
-ms-overflow-style: none;
scrollbar-width: none;
}
.container::-webkit-scrollbar {
display: none;
}
overflow: auto;
Code Example |
---|
Css :: css table flex |
Css :: css when i add a border radius to input problem |
Css :: how to apply css when not on hover |
Css :: execution timeout expired the timeout |
Css :: css letter spacing tight |
Css :: opposite of visibility hidden in css |
Css :: css image gallery |
Css :: inherit css |
Css :: add background in text |
Css :: css multiple classes |
Css :: tampermonkey custom css |
Css :: max width for tablet |
Css :: css border |
Css :: svg as background css |
Css :: vertical align h1 inside div |
Css :: css display |
Css :: tailwind icon animation |
Css :: css align image bottom |
Css :: style input number css |
Css :: get scrollbar width css |
Css :: inline block and 50% width not aligning items |
Css :: ms-clear event |
Css :: divs overlapping on mobile landscape |
Css :: background with three line color css |
Css :: css cursive text |
Css :: page rotate css |
Css :: css hover pointer |
Css :: border-radius order |
Css :: button in css |
Css :: Night / dark mode css |