Answers for "hide the scrollbar in css if not overflow"

CSS
0

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;
}
Posted by: Guest on August-14-2021
0

hide the scrollbar in css if not overflow

.myClass {
  /*auto will remove and add the scroll bar as needed*/
  overflow: auto;
}
Posted by: Guest on September-30-2020

Code answers related to "hide the scrollbar in css if not overflow"

Browse Popular Code Answers by Language