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 trialAmy Gimmy
Courses Plus Student 4,456 PointsI 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.
3 Answers
William Titterton
10,960 Pointsi 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
Courses Plus Student 4,456 PointsThank you William! That's it. I had no idea just a space could hinder my progress! ;-)
William Titterton
10,960 PointsNo worries, glad I could help. if you need help with anything else I'll do my best, just let me know.
Aaron HARPT
19,845 PointsAaron HARPT
19,845 PointsOne suggestions I would have is to make sure that your selector is targeting the element correctly. hope that helps.