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

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.