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

Problems with the pictures and CSS.

I'm building the first website "Smells Like Bacon" and I can't get the computer to read the img files. I'm using Sublime text 2, my OS is Windows 7 and my browser is Google Chrome. Now, I didn't load the files right away. I waited a couple of lessons and then realized when my computer wouldn't load up the pics of various cupcakes. At first, it didn't really matter to me because I was just trying to learn all the terminology of HTML but now that I'm on the CSS part of the tutorial it doesn't read those files either. I also tried to copy all the code that I already wrote then erase the Index file and paste everything back into the Sublime text editor but still neither the img pics file or the CSS file are recognized by the website or the text editor. If anyone could give me any help in this matter it would be greatly appreciated. Thanx

2 Answers

Assuming your folder structure is something similar as below.

Folder Structure

in HTML

<img src="img/image-01.jpg" alt="image one">

In CSS

background-image: url('../img/image-02.gif');

Scott, is your path entered correctly? IIRC it's supposed to be in the 'img' directory.

are the images in the same folder as your Website?

Thanks for the help everyone. I got the files to finally show up in the text editor but my browser still seems to be having trouble implementing them. Anyway, thanks again and I will just try and muddle through this first lesson and move on.