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

Advanced Backgrounds

i am writing everything the way it was showed in the video but my BG image is not showing up. im about to pull my hair out.

Can you provide the code that you're using? Can't really help without it.

3 Answers

body { 
        background: url(bgimage.jpg); 
    }

I...think I got it...im not moving from this chair until I do lol when I want to learn something it's going to happen.

That's good that you got it! Yea, looking at your code, I think I recall the Code Challenge saying the background image was in the 'img' folder.

So assuming relative directory location, I think it would be something like this:

body {
    background: url(img/bgimage.png);
}

yea it was a pain in the neck, I tend to mess up directory location, so now thats the first thing I check.

Jake Simon here u go mate, running example http://jsfiddle.net/npLJp/

thank you