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

General Discussion

Building a website

I'm building the website, but where can I find the material I need to download? I installed Sublime2 but I don't have the images that are required to build the website.

10 Answers

When watching a video you can scroll down the page a little, and there should be a section on the right side of the page labeled "Downloads". In that section is a link called "Project Files". Click this link and it should download what you need.

I did. But even if now I have the files on the computer, when I refresh the page of the website Im building it doesn't show the picture, but there's a question mark.

To display an image you want the following code in the body of your html:

<img src="img_directory">

img_directory is just the location of the image on your computer.

I followed the video where it said to write img/logo.gif

If you downloaded the files, they're probably saved in a different directory than "img." Find where the files are saved on your computer (probably downloads) and use that as your directory instead.

If you have the folder name "img" in the same place as your HTML document, then that code should work and look like this:

                            <img src="img/logo.gif">

Make sure you have the "img" folder saved in the same place as your HTML document.

I moved everything in the same folder but it still doesn't work. I think I have to do everything again! Then, in the challenge activity after the video it asks to write an image directory with an image 'cupcake.jpg, would that be "img/'cupcake.jpg'" ?

If I understand the challenge activity then the code should look like this:

     <img src="img/cupcake.jpg">

I did it, thank you so much guys!

Thanks for being so helpful Adam :)