I am looking for a solution to my issue. I have a css parallax effect on my site, which seems to work fin as you scroll vertically down the page. The issue is that it is also scrolling horizontally if the browser window width is reduced to be less than the width of the page content. I do not want the parallax effect horizontally. The css I am using is:
background: url(images/home.jpg) 50% 0 no-repeat fixed;
height: 500px;
margin: 0 auto;
width: 100%;
max-width: 1920px;
position: relative;
The sample site is http://bantamgraphics.com/parallax/ If the browser window is less than 1000px, a horizontal scroll bar appears and the page background color dark grey shows on the right side. Is there a way to block the horizontal scrolling?
overflow-x: hiddento body may be?