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

HTML

Adama Sy
Adama Sy
7,076 Points

Loading Images

I have a big issue loading images at this stage, using windows computer on my side. I was able to see all images at the begining, the when started to use CSS everything changed. I decided to make a new index.html, but I still have the same issue. Maybe there is something I don't see. Please check my code.

<!DOCTYPE> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells like Bakin' Cupcake Company</title> </head> <body> <img src="img/logo.gif" alt="Smells Like Bakin"> <ul class="nav"> <li><a href="a">About</a></li> <li><a href="a">Cupcakes & Prices</a></li> <li><a href="a">Locations</a></li> <li class="last"><a href="a">Contact</a></li> </ul> <div id="intro"> <h1>opposites really do attact, especially in our kitchen!</h1> </div> </body> </html>

Adama Sy
Adama Sy
7,076 Points

For some reason I removed img/ and wrote directly the name of the gif or jpg example : src="cupcake" image showed without putting the name of folder

When you are referencing the source (src) of the image or file, it's imperative that you point it to where the file is in your directory. It sounds like your image wasn't in the folder but in your root directory. It's good practice to ensure you are using folders to organize your site. Not only does it help you when you revisit the site years later, but if you have anyone else come up behind you to help you out.

4 Answers

Adama Sy
Adama Sy
7,076 Points

For some reason I removed img/ and wrote directly the name of the gif or jpg example : src="cupcake" image showed without putting the name of folder

Wrap up the coding with back-ticks so we can see the code...I had a similar problem. but I want to see exactly what you've coded....

michaelwiss's link was one part of my solution.

Adama Sy
Adama Sy
7,076 Points

I fixed that problem now it's about the grid i'm unable to use it, when trying to follow what he said to center everything, Nothing is moving. I typed all the way he said, checked it 100 times, still same when refreshed

same thing happened to me...