I need to prevent scroll on a webpage, is it possible?
I’ve tried to setup my index.css like this, but it did not work
body {
position:fixed
}
I need to prevent scroll on a webpage, is it possible?
I’ve tried to setup my index.css like this, but it did not work
body {
position:fixed
}
3
Answers
you just need to set this property
body { overflow: hidden; }
it works fine to me 😉
try adding this to your css:
use overflow as hidden or you can use padding auto from the y-axis so all the content is justified successfully.