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

HTML Build a Simple Website Styling Content Fonts and Colors

Sherry Evans
Sherry Evans
3,377 Points

Challenge 4 of 4

I can't seem to spot what I am doing wrong on this last challenge. I got the rest correct and the background is working in my webpage I created when I followed along, but, this is not working. Thanks.

/* Write your CSS below */
body {
  font-family:'Nunito', sans-serif;
  color: #FAF3BC;
  background-color: #420600; url('img/texture.png') repeat;
}

3 Answers

Richmond Lauman
Richmond Lauman
28,793 Points

Hi Sherry.

If they want you to code for a background image and a back up color you should use the propertyr that will allow you to enter values for image and color (and repeat too if you need it).. Background-color will not take a url value. You can have all the value you have now but use the background property. Watch the shorthand syntax though. You have the order right but you have an unnecessary semicolon between two of your shorthand values

Hi Sherry,

Repeat is not needed for the code challenge but background-image: is.

Jeff

Sherry Evans
Sherry Evans
3,377 Points

Thanks! I got it to work correctly, but I am not sure which is the unnecessary semi colon. Is it after the #420600. Sorry I a not sure about the vocabulary yet.

Richmond Lauman
Richmond Lauman
28,793 Points

Hi Sherry.

You had

 #420600; url('img/texture.png') repeat;

But the correct shorthand for background values would be the values with spaces between. The semi colon after the color should not be there. So you would have

background: #420600 url('img/texture.png') repeat;