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

Trouble with a Challenge

Challenge Question: Add the background texture.png from inside the img folder and set the background to repeat.

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

the portion "url ('img/bg-texture.png') repeat" is my answer I just listed all the coding in the challenge so you can have the bigger picture.

But the challenge is telling me: Bummer! Make sure you put the relative path to the image inside of 'url()'. But that is the relative path...I think!?

Any ideas? Thanks in advance!

3 Answers

Take out the bg- in:

url ('img/bg-texture.png')

Yup, I did the sane thing. The video drills bg-texture into your head, then the challenge asks for just texture. Took me some time to figure it out.

I see. It worked. Thanks! Those darn tricky treehouse guys.