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 trialJason Larkin
13,970 PointsBackground 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
Juan Jose Cortes Guzman
7,894 PointsHi Jason, you have a typo is no-repeat.
.box {
background-color:#387ABC;
background-image:url('../img/mike.png');
background-repeat:no-repeat;
}
Kirk Woodill
7,078 PointsCheck 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
13,970 PointsThank you Kirk- I did manage to solve it finally.
Jeff Busch
19,287 PointsHi Jason,
You misspelled repeat.
Jeff
Jason Larkin
13,970 PointsThanks Jeff!
Jason Larkin
13,970 PointsJason Larkin
13,970 PointsThank you Juan!