Answers for "div prevent scrollbar"

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

Browse Popular Code Answers by Language