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
john Telep
3,239 PointsMy background image will not load not matter what i do?
Hi i have tried countless times to add a image to my background i can use the image fine so the file path is right. The property i am trying to set is the background image for the body.
If i post the code can someone please take a look for me and tell me why it is not working?
3 Answers
lovell
7,882 PointsJohn,
Ive got a feeling you need to use ../img rather than just img/ to jump up into the correct img file. Good luck! :-)
john Telep
3,239 PointsThanks for your help the .. worked
Gregory Serfaty
37,140 PointsHi, In first time you have 2 problems you need to delete <p> that wrap your stylesheet and your html file. After that your image file is it in your css folder? Could you give us a url to test your code?
john Telep
3,239 PointsI am not sure what you mean by the Wrap your style sheet? Is that the wrapper i have enclosed my sections in?
Rostislav Kavan
6,818 PointsIt seems to me that you have your CSS file in CSS folder/not in the root? In such case you need to add '../' before 'img'
john Telep
3,239 PointsHI thanks for your reply. the "../img" string works.
john Telep
3,239 Pointsjohn Telep
3,239 Points