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 trialedward diamond
2,384 PointsIssue with CSS Advanced Backgrounds code challenge
Question
Add the image 'smiley.png' located in the 'img' folder above the texture background. Set it so that it doesn't repeat, and position it in the top-right corner of the div. Then, add 'img/pencil.png' above the smiley image layer. Set it so that it doesn't repeat, and position it in the bottom-left corner.
Error:
Bummer! Check the background image values in your CSS.
Answer:
/* Complete the challenge by writing CSS below */
.sketch {
background: url('img/pencil.png') no-repeat left bottom; url('img/smiley.png') no-repeat right top, url('img/texture.jpg') #EED293;
}
3 Answers
James Barnett
39,199 PointsYou've got a semicolon in the middle of your CSS, turning it into one valid CSS rule and one invalid CSS rule. Remove the semicolon and you'll be all set.
edward diamond
2,384 PointsThanks, I think I had been looking at my screen too long and totally overlooked the incorrect semicolon !
James Barnett
39,199 PointsI had a programming teacher that used to like to say half of all troubleshooting issues can be solved by going to lunch.
Spen Taylor
13,027 PointsCheck your semi colons, seems you've typed a comma instead :P
Edit: ignore my comment, maybe I shouldn't try answering posts first thing in the morning!
Spen Taylor
13,027 PointsSpen Taylor
13,027 PointsAhh too right! I got it the wrong way around, oops!