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

HTML Introduction to HTML and CSS (2016) Make It Beautiful With CSS Select and Style Multiple Elements by Class

Hi! why if in the html file I indicate class="skills" in the CSS file I need to write .skills li?

so I need to indicate also that the CSS code refers to the list item and not just to the class "skills"?

I tried to remove li from the css but it does no work well.

thanks!

Gavin Eyquem
seal-mask
.a{fill-rule:evenodd;}techdegree
Gavin Eyquem
Front End Web Development Techdegree Student 20,732 Points

If you are trying to style the list item in the .skills class then type .skills li {}

To change the li, you need to tell the system to target the li of the class .skills

Hope that helps.

1 Answer

Thank you Gavin!