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 How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

re: nth-child(4n)

This is nice for the example, but if your initial image has a two line caption you get this break (white gap) at the 3rd image rather than forth on the mobile view...

the nth-child on 3n can't be used in that situation since it then create a 3 column layout with only two image on the top row when the view is expanded.

Overall this seems like a very case specific hack.. am i missing something?

I guess this is somewhat answered in the video corrections that i didn't see before I asked the question.

ex: nth-child(3n + 1) for a more useful, but still hacked case specific solution.