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

im stuck

Hey, im stuck on the css design portion. on the challenge, it as to change the bg color and open a picture that repeats.

This is what I have

body{ background: #FAFA05 url ('img/bg-texture.png') repeat ; }

6 Answers

Julian Price
Julian Price
11,760 Points

Which session. I know when I was completing some sessions it would not allow the short hand property. So I had to say: background: background-image:

the other thing is if is saying to repeat than that not necessary since by default it repeats

assuming the question specifically says to pull the image from a folder named img then the only error I think I see is remove the space between url and the parenthesis. i.e.

body {
    background: #FAFA05 url('img/bg-texture.png') repeat;
}

I have tried that too. I even tried body{ background: #FAFA05 url ( "img/background-texture.png") repeat; ; }

I would get bummer.

now too many semi-colons after repeat. Just a simple typo now, remove the second semi-colon oh, and change the " back to '

James Barnett
James Barnett
39,199 Points

If I recall correctly the image name asked for on that step is texture.png not bg-texture.png.

yeah, i figured it out. Thanks