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 trialLeon Segal
14,754 Pointsidentifying the element causing presentational issues
how did the teacher know that specifically the 4th child was causing the problem?
3 Answers
Jeff Kinley
21,207 PointsGreat 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?
tomasvukasovic
24,022 PointsWell 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
21,207 PointsVery good point Thomas!
Leon Segal
14,754 PointsThanks guys, I will study your replies carefully!
tomasvukasovic
24,022 Pointstomasvukasovic
24,022 PointsBest answer I read in a whole lot of time!