Home › Forums › CSS › Problem with css code background. › Re: Problem with css code background.
August 27, 2012 at 3:31 pm
#108545
Member
It depends on where your CSS file is. If your CSS file is in a folder in the root called CSS then you’d have to back out to the root and then go to the images folder.
url(/images/body_bg.jpg)
The above code will go right to the root, then check for an ‘images’ folder.
url(../images/body_bg.jpg)
The above code will move one folder up from the current position and then check for an ‘images’ folder.
url(‘../../images/body_bg.jpg)
Will go two folders up and check…
You get the idea!