Home › Forums › CSS › Hide vertical scrollbar but still scrollable › Reply To: Hide vertical scrollbar but still scrollable
January 15, 2019 at 12:09 am
#281398
nikzad
Participant
A very quick an applicable solution is to use this piece of code:
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;
}
The source link is https://stackoverflow.com/questions/16670931/hide-scroll-bar-but-while-still-being-able-to-scroll