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

I am stuck on the 2nd objective in the Refactor the Layout challenge.

I have typed it all out word for word according to my work space.

@media screen and (min-width: 480px) {

#gallery li { width: 28.3333%; }

#gallery li: nth-child(4n) { clear: left; }

}

it's asking me if I've "clear: left;". Yes, I have. unless I'm just missing something.

One suggestions I would have is to make sure that your selector is targeting the element correctly. hope that helps.

3 Answers

i might be wrong, but there should be no space between the colon and the pseudo class. for example #gallery li:nth-child(4n)

Thank you William! That's it. I had no idea just a space could hinder my progress! ;-)

No worries, glad I could help. if you need help with anything else I'll do my best, just let me know.