Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

404 error when loading an image from webhost

Hi can someone please help me figure this out. I have a website that works perfectly fine when I load it from the local files on my computer but from the web host the background image fails to load giving me a 404 error. The files are uploaded in the same order they are locally so I don't understand why it can't see or load the file. I've lowered the file size and also tried saving it as jpg, and bmp but nothing. I also thought maybe it was the webhost not updating my files fast enough or maybe my cache but I'm using IE10, IEEdge, Google Chrome, and Safari and Google on my iPhone and get the same results. Lastly I checked the image path which are relative, and verified my code was correctly formatted from W3Schools. I really don't know what else it could be. Is there something simple I'm missing? I'm rewriting my code now but would greatly appreciate it if someone could give me some pointers. Thanks.

1 Answer

Try to check the capital letters on the path of the url. Sometime it happens that locally the css isn't case sensitive with url, but when you host the website, the css becomes case sensitive.

Anyway, if you give me the the line of the code that is giving you problems, I could help more.