I'm having an issue with the overflow-y
property in Chrome.
Even though I've set it to hidden
, I can still scroll the page with the mouse wheel.
Here is my code:
html,
body {
overflow-y: hidden;
}
#content {
position: absolute;
width: 100%;
}
.step {
position: relative;
height: 500px;
margin-bottom: 500px;
}
<body>
<div id="content">
<div class="step">this is the 1st step</div>
<div class="step">this is the 2nd step</div>
<div class="step">this is the 3rd step</div>
</div>
</body>
Does anybody know how to block the vertical scrolling in Chrome?
Thanks!