Answers for "stop scrolling 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
0

css how to prevent horizontal scrolling

body {
    overflow-x: hidden !important;
}
.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
Posted by: Guest on February-18-2021
0

css prevent background scrolling

<body scroll="no" ></body>

or css

background-attachment: fixed;
Posted by: Guest on July-20-2020

Code answers related to "stop scrolling css"

Browse Popular Code Answers by Language