Search
 
SCRIPT & CODE EXAMPLE
 

CSS

hide scrollbar but still scroll

.class {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.class::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
Comment

how to hide scrollbar css

/* 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 */
}
Comment

hide scroll bar

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;
}
Comment

how to hide scrollbar overflow

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;
}
Comment

Hide scroll bar, but while still being able to scroll

.container {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.container::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
Comment

css hide scrollbar

// Sass Mixing
@mixin hideScrollbar {
  &::-webkit-scrollbar {
    width: 0 !important
  }
  -ms-overflow-style: none;
  scrollbar-width: none;
}
Comment

hide scrollbar but still scroll

//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; 
}
Comment

hide scroll bar when not needed

    overflow: auto;
Comment

PREVIOUS NEXT
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 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =