Answers for "hide scrollbar inactive js css"

CSS
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
-1

javascript hide scrollbar

function HideScrollbar() {
  var style = document.createElement("style");
  style.innerHTML = `body::-webkit-scrollbar {display: none;}`;
  document.head.appendChild(style);
}
Posted by: Guest on June-22-2020

Browse Popular Code Answers by Language