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

Will Lam
Will Lam
7,027 Points

CSS Selectors Quiz

Hey all,

Just reposting this from an older thread with the encouragement of James Barnett.

I've tried different approaches but this is what I have, but yet I still get this error "Oops! It looks like Task 3 is no longer passing.

* {
  background-color: #FFF;
}

h2 {
 color: blue;
}

p > span {
  background-color: #000;
  color: #FFF;
  text-decoration: underline;
}

Just wondering what small detail I might be getting wrong. Would appreciate any help to understand this.

Thanks!

6 Answers

jeff creamer
jeff creamer
23,733 Points

"Add a type selector to make all of the paragraph tags the background color black and text white."

Maybe you targeted too much with your selectors; and offhand I see no reference in question#3 to text-decoration. What are you targeting to be background: black and color: white in your code?

Hope that helps!

Will Lam
Will Lam
7,027 Points

hey Jeff.. I did make a reference in the last bit of css "text-decoration":

Please see the screenshot:

link here

jeff creamer
jeff creamer
23,733 Points

Oh, I see, I was looking at task #3. Go back to your correct answer from task #3 and add the task #4 selector/declaration below it. It seems as if you've combined #4's answer into your #3 answer so that now all of the paragraphs on the page aren't background: black and color: white anymore; only the span has that. So try a separate selector/declaration to make the span underlined that doesn't modify your correct answer from task #3. Hope that helps.

Will Lam
Will Lam
7,027 Points

JEFF!

Thank you! I've been pulling my hair out over this question!

You might have saved me from going the way of Homer...

jeff creamer
jeff creamer
23,733 Points

Re: Homer; haha, hopefully you solved it before you only had 3 strands of hair left on top of your head!! -Glad to be of help, as I've been helped by lots of folks on the forums myself. Rock on, Will.