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 Background Properties

Jason Larkin
Jason Larkin
13,970 Points

Background image property problem

.box {
  background-color:#387ABC;
  background-image:url('/img/mike.png');
  background-repeat:no-repaet;
}

I'm getting the message that there is something wrong with the background image property, but everything seems correct. Any suggestions? Thanks in advance for any replies.

3 Answers

Hi Jason, you have a typo is no-repeat.

.box {
  background-color:#387ABC;
  background-image:url('../img/mike.png');
  background-repeat:no-repeat;
}
Kirk Woodill
Kirk Woodill
7,078 Points

Check your code to make sure everything is written correctly! Something as simple as a small spelling mistake can throw a spanner in the works. Hope this helps!

background-repeat: no-repeat;
Jason Larkin
Jason Larkin
13,970 Points

Thank you Kirk- I did manage to solve it finally.

Hi Jason,

You misspelled repeat.

Jeff