I have a div with position: absoluteset, and it is slightly wider than my browser window. I have successfully hidden the horizontal scrollbar, but I can still scroll the Macbook trackpad .
Is there any way around this?
<div id="container">
<div id="big-image"></div>
</div>
#container {
overflow-x: hidden;
}
#big-image {
background: transparent url('/path/to/image.png') no-repeat center top;
position: absolute;
width: 1307px;
left: 50%;
margin: 0 0 0 -653.5px;
z-index: 4;
}
source
share