+ 6

how do you disable the scroll bar in html so that you can't scroll whatsoever?

16th Jul 2017, 3:35 PM
LARS WEIDA
LARS WEIDA - avatar
3 Réponses
+ 8
css: body { overflow: hidden; }
16th Jul 2017, 3:37 PM
The Coding Sloth
The Coding Sloth - avatar
+ 1
To only hide horizontal scroll: overflow-x: hidden; and for vertical: overflow-y: hidden;
26th Aug 2017, 8:27 PM
Edhi7
Edhi7 - avatar
+ 1
to hide the scrollbar: ::-webkit-scrollbar { display: none; } to lock: { position:fixed; width:100%; height:100%; top:0px; left:0px; }
26th Aug 2017, 9:00 PM
TrueJu
TrueJu - avatar