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 Link to comment https://forums.phpfreaks.com/topic/132352-solved-stationed-background-image/ 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 Link to comment https://forums.phpfreaks.com/topic/132352-solved-stationed-background-image/#findComment-688127 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. Link to comment https://forums.phpfreaks.com/topic/132352-solved-stationed-background-image/#findComment-688387 Share on other sites More sharing options...
piazon79 Posted November 12, 2008 Author Share Posted November 12, 2008 Thanks for the responses! Link to comment https://forums.phpfreaks.com/topic/132352-solved-stationed-background-image/#findComment-688681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.