lock scroll css code example
Example 1: 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
}
Example 2: css prevent background scrolling
<body scroll="no" ></body>
or css
background-attachment: fixed;
Example 3: css lock scroll
/* EXAMPLE */
body {
overflow: hidden; /*[to unlock scroll:overflow: visible;]*/
}
/*SYNTAX
overflow: hidden;
*/