+ 1

100vh is scrolling in mobile

I set the body height:100vh and width:100vw.It work for computer but in mobile the screen is scrollable.Any fix for that?

9th Apr 2022, 1:01 PM
Gaganpreet singh
Gaganpreet singh - avatar
2 Antworten
0
Here is the answer- body { height:100vh; width:100vw; overflow:hidden; } Hope it helps !
9th Apr 2022, 2:59 PM
Arnav Gumber
Arnav Gumber - avatar