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

Font and Colors Challenge: Task 4 of 4 - not understanding

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

My answer: background: #420600; url ('img/texture.png') repeat;}

It keeps saying-Bummer! Make sure you put the relative path to the image inside of 'url()'.

Thanks for your help!

Thank this seems to have been the problem. I was able to move on.

3 Answers

Tara Muise - background is a shorthand property which means you are specifying multiple properties in one line. In your case you have semi-colon in the middle making it invalid CSS.

Here's some more info on the syntax of the background property and here's some more general info on what exactly a shorthand property is

if i remember correctly you have to ad background-repeat: as its own line as in its making you use the long handed version

Thanks still saying the same thing background: #420600; url('img/texture.png') background-repeat; } tried this