Forums

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

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.”

#86280
wolfcry911
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.