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

style doesn't let me pass

Hi,I am struck in CSS styling in fonts and colors as the challenge doesn't let me do the coding. the challenge is: Add the background texture.png from inside the img folder and set the background to repeat. My codes were: body { font-family: 'Nunito' 'sans-serif'; color: #FAF3BC ; background-color: #420600 ;'url(img/bg-texture.png)' 'repeat';

} The erroe I am getting is : Make sure you put the relative path to the image inside of 'url()'. PLease Help

7 Answers

Jackie Keiser
Jackie Keiser
9,833 Points

The syntax for your background declaration isn't correct. CSS declarations should look like this:

property: value;

So instead of 'url(img/bg-texture.png)', it should say:

background-image: url(img/bg-texture.png);

Check out the w3schools page for CSS background properties.

James Barnett
James Barnett
39,199 Points

Pratibha Soni -

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

The filename is texture.png not bg-texture.png

Jacob Arsement
Jacob Arsement
3,048 Points

There should be another tab for the html document that relates to the css. Use those tabs to toggle back and forth.

Not working...it's under the topic : Build a simple website / Styling content/ fonts and colors /task 4.

Jackie Keiser is correct. Also, you don't need all the quotation marks in your CSS code.

It's still not working................

We're not big on giving the answers here, but in this case let me show you what we mean and maybe you can see what's different in your code:

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

My Challenge is to accomplish everyline single line in one task. Which is : body{ font-family: 'Nunito' sans-serif ; color: #FAF3BC ; background-color: #420600 ; background: url(img/bg-texture.png) repeat ; } But it shows me the bummer:Oops! It looks like Task 3 is no longer passing. Is this the editor's fault....?