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 trialDeirdre Freeman
Courses Plus Student 5,802 PointsHelp!!!!!!
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
Courses Plus Student 2,104 Points.box { background-color: #387ABC; background-image: url('img/mike.png'); background-repeat: no-repeat;
James Barnett
39,199 PointsDeirdre FReeman - You might this forum post on how to ask good questions on the forum to be of interest to you.
Mikuel Walters
1,510 Pointsevrything 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.
Randy Crowson
2,531 PointsI have the same problem. How was this fixed?
.box{ background-color:#387ABC; background-image:url('mike.png'); background-repeat:no-repeat; }
justin ruiz
3,035 PointsRandy Crowson you just need to add the directory of the image folder so it would be 'img/mike.png'
Richard Crawford-Wilson
6,094 PointsDeirdre Freeman
Courses Plus Student 5,802 Pointsrealised where I went wrong myself!!!!!!!!
Deirdre Freeman
Courses Plus Student 5,802 Pointsthank you Richard for your helpful advice!
Richard Crawford-Wilson
6,094 PointsNo Problem :)
James Barnett
39,199 PointsRichard 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.
Richard Crawford-Wilson
6,094 PointsJames Barnett Apologies, your correct, I should have provided some context.