View Full Version : Resolved Image background that doesn't move

Chris Hick
04-29-2011, 05:38 AM
Ok for some reason, the solution to this has completely slipped my mind. The problem is that I have an image centered as the background of my content div. When I scroll down the page, the image stays where it is positioned. But what I am trying to achieve is when I scroll the image never moves and is always seen while the content flows as it normally does when one scrolls. Any Ideas?

04-29-2011, 06:41 AM
try adding

background-attachment: fixed;

to the css of the background image.

Chris Hick
04-29-2011, 08:17 PM
Yeah, that is what I was searching for.. I've used it hundreds of times but for some odd reason I could not remember it even if it was to save my life lol..

04-30-2011, 12:58 AM
no problem :)