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 trialCaspar Claessen
9,060 PointsGallery still not fixed after using nth-child
My gallery still gets messed up even after using nth-child(3n+1), and I just cannot find any mistakes I may have made in my code. Who can help me? This is my snapshot: https://w.trhou.se/4iw5gblhsc
2 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsIt looks like the code is working perfectly
There's another breakpoint at 660px where the layout breaks up. I expect you'll be learning about the code that deals with that next. :-)
Robertin Datkov
11,558 PointsJust type 4 instead 3+1 for the nth-child and let me know if it works