piazon79 Posted November 11, 2008 Share Posted November 11, 2008 How do I make the background image on a website remain stationed and not move when you scroll? So that the only thing that scrolls is the div that I have centered on the page? Am I making sense? TIA Quote Link to comment Share on other sites More sharing options...
Goldeneye Posted November 11, 2008 Share Posted November 11, 2008 use background-attachment: fixed; See: http://www.w3schools.com/Css/pr_background-attachment.asp Also, to center it, use background-position: center center; See: http://www.w3schools.com/css/pr_background-position.asp Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 12, 2008 Share Posted November 12, 2008 Do what he said. Create a parent div and put that in. Quote Link to comment Share on other sites More sharing options...
piazon79 Posted November 12, 2008 Author Share Posted November 12, 2008 Thanks for the responses! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.