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

General Discussion

This code is not working properly

i was instructed to clear every forth list item left. @media screen and (min-width: 480px) { #gallery li { width:28.3333%; } #gallery li:nth-child(4) { clear:left; width:28.3333%; } }

1 Answer

Hi Chad,

Your selector is selecting the 4th child only but the challenge wants every 4th child.

So it's #gallery li:nth-child(4n) Also, you don't have to set the width again. It's already set in the previous rule.