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
Eddy Valna
Courses Plus Student 3,978 PointsAdvanced 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.
3 Answers
Eddy Valna
Courses Plus Student 3,978 Pointsbody {
background: url(bgimage.jpg);
}
Eddy Valna
Courses Plus Student 3,978 PointsI...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.
Chad Harris
2,892 PointsThat'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);
}
Eddy Valna
Courses Plus Student 3,978 Pointsyea it was a pain in the neck, I tend to mess up directory location, so now thats the first thing I check.
Ajinkya Borade
Courses Plus Student 16,635 PointsJake Simon here u go mate, running example http://jsfiddle.net/npLJp/
Eddy Valna
Courses Plus Student 3,978 Pointsthank you
Chad Harris
2,892 PointsChad Harris
2,892 PointsCan you provide the code that you're using? Can't really help without it.