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

Home Forums CSS [Solved] New to the Game Re: [Solved] New to the Game


Simple fix!

Change your links to your images to:

background: url(/images/image-file-name.jpg);

Note the forward slash in the very beginning. That tells the CSS file to find the image in the site root. I’ll give you a few examples.

For these examples, we’ll say that your CSS file lives exactly where it does now, in a folder called “css”.

translates to:

translates to:

Remember that the link is always relative to the file that it is being called from!

This article looks like it might help explain it further: