Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations Selectors Basic Structural Pseudo-Classes

First Baptist
First Baptist
5,144 Points

background color

I'm setting my background color to "black" and it appears to be working in the preview mode; however, the quiz keeps telling me that I need to set it to "black."

3 Answers

Hey Patrick,

You mind including the code so we can see whats going on?

First Baptist
First Baptist
5,144 Points

Thanks Alexander,

I just figured it out. I was using the wrong selector in the quiz (ul:first-child instead of li:first-child). When I checked my answer, it gave me the message "Bummer: the color is supposed to be set to "black," or something similar.

I was confused, because my color was set accordingly. But I guess the problem was really my use of the wrong selector. I guess the quiz just gave me a prepared response that didn't really match the error in my code.

Thanks for your help.

No problem,

Glad you figured it out!