Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Help!!!!!!

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
PLUS
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.