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

identifying the element causing presentational issues

how did the teacher know that specifically the 4th child was causing the problem?

3 Answers

Jeff Kinley
Jeff Kinley
21,207 Points

Great question, Leon. I am sure Nick new this from experience.

Here he was creating the portfolio with 3-columns. Since we want 3 items on each row, we need to clear every 4th list item. I think he purposely demonstrated it that way so that the student could see what would happen without using nth-child. If you were making a 4-column row, the same thing would happen, but you would have to clear every 5th list item. Make sense?

Best answer I read in a whole lot of time!

Well my friend he knew that the fourth child was causing the problem because the previous three did not cause a "jump" when resizing the browser window

Jeff Kinley
Jeff Kinley
21,207 Points

Very good point Thomas!

Thanks guys, I will study your replies carefully!