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

Amy Gimmy
PLUS
Amy Gimmy
Courses Plus Student 4,456 Points

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.

Aaron HARPT
Aaron HARPT
19,845 Points

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

3 Answers

William Titterton
William Titterton
10,960 Points

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

Amy Gimmy
PLUS
Amy Gimmy
Courses Plus Student 4,456 Points

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

William Titterton
William Titterton
10,960 Points

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