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 trialdeandre kimpson
Courses Plus Student 739 Pointsim 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
11,760 PointsWhich 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
Michael Frost
1,918 Pointsassuming 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;
}
deandre kimpson
Courses Plus Student 739 PointsI have tried that too. I even tried body{ background: #FAFA05 url ( "img/background-texture.png") repeat; ; }
I would get bummer.
Michael Frost
1,918 Pointsnow too many semi-colons after repeat. Just a simple typo now, remove the second semi-colon oh, and change the " back to '
James Barnett
39,199 PointsIf I recall correctly the image name asked for on that step is texture.png
not bg-texture.png
.
deandre kimpson
Courses Plus Student 739 Pointsyeah, i figured it out. Thanks