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 Build a Simple Website Styling Content Fonts and Colors

Texture.png

I'm not sure what's happening here, but the line of code for this question is formatted correctly despite triggering an incorrect answer.

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

3 Answers

Jacob Miller
Jacob Miller
12,466 Points

In CSS a semicolon denotes the end of a property. So in you're background property you need to remove the semicolon after your hex color value and just leave a space between that and the url. Like this:

body {
    font-family: "Nunito", sans-serif;
    color: #FAF3BC;
    background: #420600 url("img/texture.png") repeat;
}
James Barnett
James Barnett
39,199 Points

Here's a hint, in CSS as semicolons go at the end of a property just like periods go at the end of a sentence.

Jacob Miller
Jacob Miller
12,466 Points

Oh and also, make sure you don't put a space between url and the parentheses that come after it.