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

HTML

Code Challenge

I've been stuck on this challenge for hours now, and have read other forums but still can't figure it out. The question goes as follows:

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

Here's what I have:

/* Write your CSS below */
Body{
  font-family:'Nunito',sans-serif;
    color: #FAF3BC;
    background: #420600; url('img/texture.png') repeat;
}

The hint i'm being given is "Make sure you put the relative path to the image inside of 'url()'

2 Answers

Hi Cynthia,

try getting rid of the semi-colon after the #420600.

background:

is your property (short-hand property, in this case) and

#420600 url("img/texture.png")  repeat;

is the associated value. where your syntax should be:

selector {
property:value;
}

Hi Gary Mann, I removed the semi-colon after "420600" and that was it!!!! THANK YOU!!!!