Answers for "how to stop scrolling in css"

5

css how to prevent horizontal scrolling

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
Posted by: Guest on November-24-2019
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

css stop scrollbar

html {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

html::-webkit-scrollbar {
    width: 0px; /* For Chrome, Safari, and Opera */
}
Posted by: Guest on July-02-2020

Code answers related to "how to stop scrolling in css"

Browse Popular Code Answers by Language