I have a background image that I want to repeat across (repeat-x) however when I try to view the page, nothing shows up. I’m also using javascript to use a different CSS file for different times of the day, however I am sure that is not the problem because firebug shows that the CSS file was added to the head.
Edit: The problem is that the browser cannot find the file, however when I attempt to link to it, it still cannot find the file.
You can download the archive of the site here:
http://cdn.duffcraft.net.adam543i.net/sitebkp-1845.zip
Its only 200 or so kb. Nothing massive.
And you are sure the path to your image file is correct? Does Firebug load the image?
Your file structure is probably like this
Now, from your
style.cssyou have to use a relative path to your image file. So notimg/night/night-tile.pngbut../img/night/night-tile.png. In your path it is looking for the image within thecssdirectory, which is wrong.==Update==
After downloading your code I found 2 more errors.
The first is that you forgot to add
rel=stylesheetto the<link>element in which you link to your stylesheet. This way, browsers will not know it’s a stylesheet.The second is that you forgot to add a
;at the end of your first rule in yournight.css, resulting in a parse error which causes the background rule not to be rendered.Good luck fixing these issues!