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”.
images/image-file-name.jpg
translates to:
http://www.yoursite.com/css/images/image-file-name.jpg
/images/image-file-name.jpg
translates to:
http://www.yoursite.com/images/image-file-name.jpg
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:
http://www.communitymx.com/content/article.cfm?cid=230ad