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
marsha spell
Courses Plus Student 5,555 Pointshelp please
Add the background texture.png from inside the img folder and set the background to repeat.4/4 i am not sure what i am doing wrong here? here is my code....png background: #FAF3BC url('img/texture.png') repeat; } thanks!
7 Answers
Erik Montes
3,717 PointsThen this should work:
background-image: url('img/texture.png');
background-repeat: repeat;
Jerry Welch
3,818 Points body {
font-family: 'Nunito', 'sans-serif';
color: #FAF3BC;
background-color: #420600;
url('img/texture.png');
repeat;
}
Just need a touch-up on your formatting.
Asa Winasis
Courses Plus Student 2,809 PointsHi, out of curiosity.. how did you manage to put the line of code inside a black box ?
Jerry Welch
3,818 PointsHit the 'tab button once to indent each line, or hit the spacebar 4-times.
Asa Winasis
Courses Plus Student 2,809 PointsAlright, cheers.
Asa Winasis
Courses Plus Student 2,809 PointsNever mind, Jerry's answer is correct i think
Erik Montes
3,717 PointsAre you suppose to use shortcut notation? But you can also do something like this: (Replace selector with whatever is your selector.)
selector {
background-color: #FAF3BC;
background-image: url('img/texture.png');
background-repeat: repeat;
}
marsha spell
Courses Plus Student 5,555 Pointsi am not sure its not working:(
Erik Montes
3,717 PointsWhat is the challenge asking?
marsha spell
Courses Plus Student 5,555 PointsAdd the background texture.png from inside the img folder and set the background to repeat.
marsha spell
Courses Plus Student 5,555 PointsOMG thank you!!! it worked!!!