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
Armando Abrahamsson
1,391 PointsBackgrounds & Borders issue.
I've looked over my code and unless its a basic error that I am missing I cannot see where the issue lies.
Here is the task: "We have an image file, 'smiley.png', located in the 'img' folder. Add it as an image 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."
The error my code receives is to check the background "image values in your css".
.sketch {
background: url('img/texture.jpg') no-repeat right top, url ('img/pencil.png')
no-repeat left bottom, url('img/smiley.png') #EED293;
}
```CSS
4 Answers
r3lient security
11,558 Pointsit looks like your syntax url ('img/pencil.png') has a space between url and the open paren (
Tom Checkley
25,181 PointsI think it's because you are adding the pencil before the smiley image when it asks for the pencil to be the top layer. Don't forget the top layer is the last item in the cascade
Aleksandre Martashvili
7,373 Pointsjust remove the space after url before ('img/pencil.png')
edit: yeah, what r3lient security said : D
Armando Abrahamsson
1,391 PointsThanks, appreciate the help!