Home › Forums › CSS › Getting specific images to stick with background on resize › Re: Getting specific images to stick with background on resize
August 16, 2010 at 1:35 pm
#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.