Answers for "how to lock scrolling css"

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
4

javascript disable scrolling on body

document.body.style.overflow = 'hidden';
Posted by: Guest on August-17-2020
0

css lock scroll

/* EXAMPLE */
body {
	overflow: hidden; /*[to unlock scroll:overflow: visible;]*/
}

/*SYNTAX
overflow: hidden;
*/
Posted by: Guest on February-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language