Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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