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 trialnathon reed
8,521 PointsWhy 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;
}
Dave McFarland
Treehouse Teachernathon
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
Treehouse TeacherHi nathon reed
The CSS background
property is all-lowercase no 'B' in background
.
nathon reed
8,521 PointsI 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
Treehouse TeacherThe pencil image needs to be above the smiley image, so you need to add it first to the background property.
nathon reed
8,521 PointsOkay thank you so much I see the issue. was able to pass the code challenge thank you again.
Antonis Martalis
1,506 PointsAntonis Martalis
1,506 PointsCan we have the Html too.. Do you apply this id correctly? id=""