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!
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

Janette Greenawald
Courses Plus Student 296 PointsCode Challenge Fonts and Colors Question #4
I do not understand why I keep getting an error message for Question 4, and often another message telling me that Question 3 is now wrong. The clue I get is ('')
This is what I put for the answer to Q4:
background: #420600 url('img/bg-texture.pgn') repeat;
What is wrong here?
6 Answers

James Barnett
39,199 PointsJanette -
There is no 'bg' is this? In the training module it was as I wrote it above
My advice is don't follow the videos too closely. They are meant descriptive not prescriptive.
Don't get tripped up by files names and other stuff that differs between the videos and the code challenges, they aren't meant to match perfectly.

samiff
31,206 PointsAre you sure you have the image path correct?
background: #420600 url('img/texture.png');

Janette Greenawald
Courses Plus Student 296 PointsThere is no 'bg' is this? In the training module it was as I wrote it above (except it was a .jpg.

Ben Jakuben
Treehouse TeacherNot sure if this is the problem, but you have a typo in your file extension in the code you pasted in.

James Barnett
39,199 PointsJanette -
You are so close. I think I know the issue you are having.
For reference, the instructions:
Add the background texture.png from inside the img folder and set the background to repeat.
What they are saying is, to add an image as background which is named texture.png
and is located in a folder named img
, and set that background to repeat.

Janette Greenawald
Courses Plus Student 296 PointsThanks all, and for such quick responses. This was solved once I removed the 'bg-' from in front of texture.png . Great info here. This was my first question.