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

Nth-child did not fix all errors.


My code is above. Check responsive.css, as well as index.html

Copied the video exactly, however when i resize the screen to a SMALLER width, the 5th item jumps to the right column, as opposed to the left. Why is this?

Cindy Lea
Cindy Lea
Courses Plus Student 6,497 Points

I did have a similar problem, but in the final code I didnt. Wish I could tell you why...

1 Answer

Steven Parker
Steven Parker
229,606 Points

It moved to the left for me. But I did notice that you had not applied the correction mentioned in the teacher's notes. Line 28 of responsive.css should be:

  #gallery li:nth-child(3n+1) {