PDA

View Full Version : How do I do non-scrolling background?



drummerboy0511
19 Dec 2009, 02:49 PM
OK, this is a little hard to explain, and I don't think that my thread title does it justice, but I'm gonna give it a go anyway. How do I set an image as the background of a webpage and have it so that it doesn't tile, it is just displayed on the background of the page, but also has it where, if the viewer scrolls, it doesn't scroll the image too. The image stays stationary in the back. How would I do that?

Thanks in advance!

Wickham
19 Dec 2009, 03:08 PM
background-repeat:no-repeat;
background-position: fixed;

http://www.w3schools.com/css/pr_background-position.asp