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 trialAndrew Fischer
Courses Plus Student 2,009 PointsImages are not loading in Cupcake project
Downloaded the project files that accompany this lesson. When I enter the image names in text editor they do not load in the browser after refresh. Simply question mark over the image. What am I doing wrong?
8 Answers
Kristopher Keen
9,992 PointsAlso check your file path when calling the img. Make sure img folder is in same folder as your index.html file. Then make sure your logo.gif file is in that img folder.
Logan R
22,989 PointsI would suggest giving us the code to better help you :) Try watching the video "Tips for asking questions" to the right of this page! :D
Without looking, I would check 2 things:
Did you include img directory when you looked up the picture? IE: img src="img/hello.png"
Are the pictures present in the correct directory?
Thanks!
Andrew Fischer
Courses Plus Student 2,009 PointsThank you! I saved the zip file to my desktop and entered the correct name of the images
Logan R
22,989 PointsWell, if you did all that correct, I would advise to just simply paste the code in a comment using the proper format and myself, or someone else can check it to see if you made a little mistake :)
Andrew Fischer
Courses Plus Student 2,009 Pointsok thanks!
Andrew Fischer
Courses Plus Student 2,009 PointsHere's the example from the logo from my code <img src="img/logo.gif" alt="Smells Like Bakin">
Tim Macpherson
881 PointsYeah I'm having the same issue with exactly the same code. There is just a strange icon that looks like an SD memory card...
Logan R
22,989 PointsYeah, I am pretty sure the image is not loading.
I have no idea what is causing this to happen. I personally downloaded the files and extracted the files to my desktop and it worked just fine for me.
Andrew Fischer
Courses Plus Student 2,009 PointsDo I have to open the project file in text editor in order for it to locate the image file. I'm at an impasse now as the css files are not loading either
Sharron Richardson
1,271 PointsHi Andrew. I was having this same problem earlier. I was able to resolve it by copying the img folder (from the website waters zip file) onto my desktop. I believe that the issue was that I had saved the zip file into and folder without extracting it. Hope this helps. :o)