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
matt koracin
2,347 Pointsbg image?
Followed video and not sure what im missing here: background: #420600 url('img/bg-texture.png') repeat;
6 Answers
James Barnett
39,199 PointsHere's a hint, the question mentions the name of the image file is texture.png
Ben Bowden
7,841 PointsLooks all good to me. Make sure the image is actually in the folder you are telling it to load from.
matt koracin
2,347 PointsThe task challenge says to use img folder. What do you mean by /img/ does the / upfront mean to ref or should i actually do '/img/bg-texture...
matt koracin
2,347 PointsThe task challenge says to use img folder. What do you mean by /img/ does the / upfront mean to ref or should i actually do '/img/bg-texture...
Michael Lund
713 PointsSame problem here - do exactly as shown, but it keeps telling me :Bummer! Make sure you put the relative path to the image inside of 'url()'.
Here´s the code: body { font-family: 'Nunito', sans-serif; color: #FAF3BC; background: #420600 url('img/bg-texture.jpg') repeat; } The picture is in the img folder :-)
Ralph Roshto
1,646 PointsMy images downloaded into a separate folder (mac) so I just opened that folder, found the img that I wanted and used the OPEN WITH option to open it with Safari. After it opened I copied the File: URL and pasted it where the IMG descriptive appeared in the command line. Works most of the time...you have to experiment! That's part of the fun!
matt koracin
2,347 Pointsmatt koracin
2,347 Pointsit said png. i also tried jpg and that didn't work either. at this point ive reported it as a glitch to treehouse.
James Barnett
39,199 PointsJames Barnett
39,199 PointsApologies, I meant texture.png, that was a typo on my part.
matt koracin
2,347 Pointsmatt koracin
2,347 PointsSo, it ended up taking the answer after i removed the bg- ....yet it asked to assign it as a background and was instructor so in the video ?
James Barnett
39,199 PointsJames Barnett
39,199 PointsWhen doing a the exercises it's always best to carefully read the instructions of the problem you are working on. The code challenges exist separately from the videos, they may share some similarities in terms of variable/file names but that's purely a coincidence. Or to put it another way, the videos are intended to be descriptive and prescriptive.
You can think of it this way, there's not much point in giving homework if the homework problem has the same answer to the example problem showed in class.