I’m designing a site with a fixed repeated background but can’t work out why it has one problem.
If you load the site in a small window, then scroll right, the background doesn’t carry on and the background colour show’s instead.
Any ideas?
Site is: http://new.focalpix.co.uk/
CSS for the background is:
body { background: url(http://media.focalpix.co.uk/img/gradbackground.png) repeat-x fixed; }
Try the following CSS:
It looks like (in both Opera and Chrome) the browser is treating the area outside the browser’s initial viewport as part of the HTML tag but not part of the BODY. You can verify this by putting the background-image on the HTML but not the BODY tag – and then see how it appears only in the scroll-to-view area of the document. I have no idea why this is happening – anyone?
CSS above appears to fix the problem, though.