Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Getting specific images to stick with background on resize Re: Getting specific images to stick with background on resize

#81629
virtual
Participant

That is because you are using position: fixed. Read this on css positioning
http://www.w3schools.com/css/css_positioning.asp

To get your background images to stay centered you will need to put all the elements of your site, e.g. header, navigation, content, footer, into a containing div say #wrapper, give it the width of your site and position center by using margin: 0 auto; Then you can attach the background images to their corresponding divs.