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

CSS CSS Foundations Backgrounds and Borders Advanced Backgrounds

Robert Stewart
Robert Stewart
11,921 Points

Stage 7 Backgrounds and Borders Code Challenge

From what I can tell my code is correct. However the code challenge will not complete. It says, "Check the position values in your CSS".

This is what the instructions say to do: 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.

This is what I've done:

.sketch {
    background: url('img/pencil.png') no-repeat bottom left, url('img/smiley.png') no-repeat top right, url('img/texture.jpg') #d6bb80;
}

When I preview the code it works perfectly, but it still won't accept it. Anyone see any problems with my code?

1 Answer

Hi Robert,

This should help.

Jeff

Robert Stewart
Robert Stewart
11,921 Points

Thanks, I see what was wrong now. Even though it works the way I did it (When I tested it), the code challenge wanted "right top" instead of "top right" and "left bottom" instead of "bottom left".