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

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

help 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

Then this should work:

background-image: url('img/texture.png');
background-repeat: repeat;
Jerry Welch
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.

Hi, out of curiosity.. how did you manage to put the line of code inside a black box ?

Jerry Welch
Jerry Welch
3,818 Points

Hit the 'tab button once to indent each line, or hit the spacebar 4-times.

Alright, cheers.

Never mind, Jerry's answer is correct i think

Are 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;
}

What is the challenge asking?

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

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