Answers for "how to disable the scrollbar in html"

35

hide scrollbar css

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none; /* Firefox */
}
Posted by: Guest on July-01-2020
6

disable scroll css

/* Answer to: "disable scroll css" */

/*
  You must set the height and overflow of the body, to disable
  scrolling.
*/

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden
}
Posted by: Guest on April-20-2020
-1

how to eliminate scroll bar in html

html { overflow-y: hidden; }
Posted by: Guest on March-23-2020

Code answers related to "how to disable the scrollbar in html"

Browse Popular Code Answers by Language