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

PLEAS HELP!CSS Selectors challenge 3/10

The prompt is: Add a type selector to make all of the paragraph tags the background color black and text white.

This is what Im typing:

p { color:white; background-color:black; }

and its not working it says: "Those weren't the values we were looking for."

I have tried many different ways and nothing works. Besides, thats how the video had it.

7 Answers

Try typing it in a different format, I find sometimes the way you type affects how the program reads your answers.

p {
    color: white;
    background-color: black;
}

Thanks for your help! I tried it the way you did above and it still gives me the same stupid response.

I'll take a look, which challenge is it you're on? I'm assuming under CSS Foundations?

Im on: CSS Foundations - Selectors -CSS Selectors challenge task #3

It looks like it is working for me, the code you should have entered from tasks 1, 2 and 3 should be:

* { background-color: white; }

h2 { color: blue; }

p { color: white; background-color: black; }

Thanks, it finally worked! I had everything typed up like you, but it wasn't working, so I just went back and restarted the challenge from task 1!

THANK YOU

Glad to hear it worked!