-3

I'm using a parallax master script to move divs around based on mouse location. The problem is, sometimes one of the elements goes too far and browsers scrollbars show up. Is there a way to disable this with css or js? Thanks!

Kristian
  • 1,348
  • 4
  • 16
  • 39

2 Answers2

1

You can hide scrollbars with overflow: hidden;. Set this on the container on which scrollbars appear.

Example:

http://www.w3schools.com/cssref/playit.asp?filename=playcss_overflow&preval=hidden

Jazi
  • 6,569
  • 13
  • 60
  • 92
0
body {
   overflow : hidden;
}
Mārtiņš Briedis
  • 17,396
  • 5
  • 54
  • 76