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

Why is my code not working CSS foundations backgrounds

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

Can we have the Html too.. Do you apply this id correctly? id=""

Dave McFarland
Dave McFarland
Treehouse Teacher

nathon

To put code into a forum post use triple back ticks -- ``` — around the code. I fixed your code here, but in the future here's a forum discussion that describes how to add HTML, CSS, JavaScript or other code to the forum: https://teamtreehouse.com/forum/posting-code-to-the-forum

4 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Hi nathon reed

The CSS background property is all-lowercase no 'B' in background.

I took the suggestions and still not working here is my HTML and CSS code so far.

<!DOCTYPE html>
<html>
<head>
    <title>Multiple Background Images</title>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="sketch"></div>
</body>
</html>
.sketch {
     background: url('img/smiley.png') no-repeat right top, 
     url('img/pencil.png') no-repeat left bottom, url('img/texture.jpg') #EED293;
}
Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

The pencil image needs to be above the smiley image, so you need to add it first to the background property.

Okay thank you so much I see the issue. was able to pass the code challenge thank you again.