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 trialPratibha Soni
7,561 Pointsstyle 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
9,833 PointsThe 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
39,199 Points>
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
3,048 PointsThere should be another tab for the html document that relates to the css. Use those tabs to toggle back and forth.
Pratibha Soni
7,561 PointsNot working...it's under the topic : Build a simple website / Styling content/ fonts and colors /task 4.
Sharon Walls
9,234 PointsJackie Keiser is correct. Also, you don't need all the quotation marks in your CSS code.
Pratibha Soni
7,561 PointsIt's still not working................
Sharon Walls
9,234 PointsWe'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;
}
Pratibha Soni
7,561 PointsMy 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....?