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

pamela guy
PLUS
pamela guy
Courses Plus Student 4,311 Points

How to add a background-image

Here is my code

.wildlife {
  color: white;
  background-color: #434a52;
  padding: 18% 24%;
  border-top: 10px solid #ffa949;
  margin: 105px 0 60px;
  box-shadow: 15px 15px rgba(0,0,0, .8)
  background-image: url('../img/bear.jpg');

}
Kerry Smyth
Kerry Smyth
3,921 Points

I think you missed the " ; " after box-shadow?

You might also want to add background-repeat:no-repeat;

1 Answer

Hi,

Your box-shadow line needs a semi-colon at the end. :)