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

bg image?

Followed video and not sure what im missing here: background: #420600 url('img/bg-texture.png') repeat;

6 Answers

Here's a hint, the question mentions the name of the image file is texture.png

it said png. i also tried jpg and that didn't work either. at this point ive reported it as a glitch to treehouse.

Apologies, I meant texture.png, that was a typo on my part.

So, 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 ?

When 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.

Looks all good to me. Make sure the image is actually in the folder you are telling it to load from.

The 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...

The 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...

Same 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 :-)

My 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!