Answers for "show scrollbar but disable scrolling"

CSS
5

DISABLE the Horizontal Scroll

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
Posted by: Guest on November-24-2019
3

css hide scrollbar but allow scroll

html {
  overflow:   scroll;
}
::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* make scrollbar transparent */
}
Posted by: Guest on October-05-2020
0

javascript keep scroll visible

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}
Posted by: Guest on June-08-2020

Code answers related to "show scrollbar but disable scrolling"

Browse Popular Code Answers by Language