Home › Forums › CSS › “Change the x & y coordinates of the background image in CSS.” › Re: “Change the x & y coordinates of the background image in CSS.”
September 3, 2011 at 2:23 pm
#86280
Participant
Oh, sorry – I didn’t fully understand what you were trying to do. The background image is placed at the top of #angles which is then covered over by the banner. Here’s what you want:
#angles { background: url(../images/backgrounds/bg-spectrum.jpg) no-repeat 50% 30px; }
The 50% centers it horizontally while the 30px starts it below the banner.