1html {
2overflow: scroll;
3overflow-x: hidden;
4}
5::-webkit-scrollbar {
6width: 0px; /* remove scrollbar space /
7background: transparent; / optional: just make scrollbar invisible /
8}
9/ optional: show position indicator in red */
10::-webkit-scrollbar-thumb {
11background: #FF0000;
12}
1.myClass {
2 /*auto will remove and add the scroll bar as needed*/
3 overflow: auto;
4}