Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Build a Simple Website Styling Content Fonts and Colors

Sheryl Wood
Sheryl Wood
1,204 Points

Question about code

Can anyone tell me what is wrong with the 4th line of this code? I keep getting a message that it's incorrect, but can't tell what I'm doing wrong. Thx, Sheri

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

5 Answers

The file name is bg-texture.png, not texure.png?

The file name is bg-texture.png, not texure.png?

Are you trying to make the background a url or a color?

Sheryl Wood
Sheryl Wood
1,204 Points

I'm trying to get past the Build a Simple Website Fonts and Colors code challenge and the task is:

"Add the background texture.png from inside the img folder and set the background to repeat."

When I check against the website source CSS the code seems to be correct, but for some reason it's not passing.

Sheryl Wood
Sheryl Wood
1,204 Points

Thanks Emilia, I'll try removing the "bg-" from the line...