-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,318
  • 4
  • 16
  • 38

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,344
  • 12
  • 57
  • 89
0
body {
   overflow : hidden;
}
Mārtiņš Briedis
  • 16,985
  • 5
  • 53
  • 74