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

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Caspar Claessen
Caspar Claessen
9,060 Points

Gallery 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
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

It 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
Robertin Datkov
11,558 Points

Just type 4 instead 3+1 for the nth-child and let me know if it works