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



Q.Next, add the image 'mike.png' located inside the 'img' folder to the background. We only want Mike to appear once, so follow it with a property and value that will not repeat the image. I put .box{ background-color:#387ABC; background-image:url('mike.png'); background-repeat:no-repeat; } what did I do wrong please?

6 Answers

luis Andre
luis Andre
Courses Plus Student 2,104 Points

.box { background-color: #387ABC; background-image: url('img/mike.png'); background-repeat: no-repeat;

evrything you put was right the only problem i saw was that img was in the string i'd put img/mike.png in the paratheses that way its in the img folder.

I have the same problem. How was this fixed?

.box{ background-color:#387ABC; background-image:url('mike.png'); background-repeat:no-repeat; }

Randy Crowson you just need to add the directory of the image folder so it would be 'img/mike.png'

realised where I went wrong myself!!!!!!!!

thank you Richard for your helpful advice!

No Problem :)

James Barnett
James Barnett
39,199 Points

Richard Crawford-Wilson - Here on the forums we try not to post bare links, that don't include context as to how it is meant to be of use. In addition that document is containing many questions and answers, if there's a very specific one that provides an actionable suggestion, then linking to that is much more helpful.

James Barnett Apologies, your correct, I should have provided some context.