Reputation: 151
I have a mouse move functionality to scroll a 3544 x 4092 image in a div, filling the whole screen.
I got rid of horisontal bars using:
body {
overflow-x: hidden;
}
But nothing else works thus far for the vertical bars. Any ideas would be helpful.
This is the CSS for the div containing the image (its parent is the body):
#zoompage{
cursor: pointer;
position: absolute;
width: 120%;
z-index: 300;
left: -10%;
top: 0px;
}
Upvotes: 1
Views: 1923
Reputation: 293
Typically, you can prevent vertical scroll bars with overflow: hidden;
or overflow-y: hidden;
.
Upvotes: 2