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.

HTML How to Make a Website Styling Web Pages and Navigation Style the Image Captions

Mary Pieroszkiewicz
PLUS
Mary Pieroszkiewicz
Courses Plus Student 1,661 Points

Selector "color: #bdc3c7

I have a question about Selector "color: #bdc3c7;" in #gallery li and #gallery li a p - to which this declaration refers to a gallery li ? Thank you for answer.

2 Answers

Martin Mihailovski
Martin Mihailovski
5,646 Points

If i understand you question... you ask which selector to use, in order to style all list items in class gallery... so

With #gallery li a p - you style all paragraphs in class gallery, inside list items and anchor tags.

With #gallery li - you style all list items in class gallery (that is you need).

Mary Pieroszkiewicz
PLUS
Mary Pieroszkiewicz
Courses Plus Student 1,661 Points

Thank you for your answer. But is it necessary to use this example #gallery li {color: #bdc3c7; } I have noticed that the project was not needed?

Martin Mihailovski
Martin Mihailovski
5,646 Points

Could you send my link from this quiz? I will check it, i pass it few days ago but i don't remember it...