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

tasks asks other code than explained in video

Hi, guys. I just started here and I´m currently doing the task for adding colors and backgrounds in css. But the challenge asks slightly other codes as described in the video-tutorial. Like: Adding a semicolon or write 'url()' instead of url(''). When I code as said in the tutorial my browser shows everything as it has to be.

Can somebody help me? Is there a bug or am I doing something wrong in the challenges?

7 Answers

@Pia -

The exercise instructions:

Add the background texture.png from inside the img folder and set the background to repeat.

What these instructions are saying is to add a background image located in the folder img with the filename of texture.png and set it to repeat.

Can you post the code you are trying to use, so we can see the bigger picture.

Remember to indent the your code by 4 spaces when you post it to the forum, so the forum software will format your code correctly.

This is what I write in the challenge:

/* Write your CSS below */

body {

font-family: 'Nunito', sans-serif;

color: #FAF3BC;

background: #420600 url('img/bg-texture.jpg') repeat;

}

After klicking on "Check my work" it says:

"....use 'url()'...."

aaah. I got it! Thank you very much. The "use 'url()'" totally confused me.

Thanks!

@Pia - You're quite welcome.

Those messages are not so much errors as they are hints.

The code challenge engine tries to guess what mistake there is in your code, and then offers a generic hint, sometimes overly so.

This still isn't working for me I type ('img/texture.png') and it says it is wrong.

@Claire - Can you post the code you are using, here on the forum preferably in a new thread (as this is Pia's thread and her issue as been resolved).