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


Help Needed - Build A Simple Website - Styling Content - Challenge Task 4 of 4

Hi, not sure if this is what the forum is for or not so apologies in advance {Blame Codecademy's fantastic Q&A bit...) but I'm stuck in a certain section and am banging my head against the wall. <br> The Problem.... Challenge task 4 of 4

Add the background texture.png from inside the img folder and set the background to repeat. <br> I've copied the text from the video...tried any variation I can think of and still it won't submit. I've even tried a different internet browser and still nothing! <br> The code from the video and finished CSS sheet is

"body {
font-family: 'Nunito', sans-serif;
color: #faf3bc;
background: #420600 url('img/bg-texture.jpg') repeat;

} <br> Any help is greatly appreciated, and apologies for poor formatting of this message. This isn't like any forum I've been on previously.

7 Answers

I have not see the task you talking about but from what I can see, you have said that you have added the "texture.png", have you made sure that you have changed the file type in the image deleration, i.e. ('img/bg-texture.png'). Also make sure to go through your code and make sure everything is spelt correctly, that is most of the time the main problem.

Hope this helped

Yeah that is most likely what my answer will fix, to me that means that it cannot find the file you are trying to access.

Just solved it...I feel so stupid. Was basically what you said i.e wrong file type .png > .jpeg as well as it being texture and not bg-texture. In my defense however, I will say that the downloadable style sheet's are DIFFERENT to what the exercise expects. Whether or not this was a conscious choice to catch people out remains to be seen... Much appreciated, Toby.

Glad to hear its all solved, And yes they intentionally rename things differently so that you have to look for bugs and make sure your paying attention. but trust me even after years of web you will still make this mistake every now and then. Stuff happens :)

Thanks for the rapid response Toby, I'll go back and try variant image file types as well as scrutinize my code further.

The error message I keep getting is "Bummer! Make sure you put the relative path to the image inside of 'url()'.", does this mean anything to you?

Point noted, Lesson learned :)

Ryan Gean
Ryan Gean
1,517 Points

I was just now stuck on the exact same challenge with the exact same problem, I'm glad I wasn't the only one!