Forums

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

Home Forums CSS Problem with css code background. Re: Problem with css code background.

#108545
TheDoc
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!