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
Lionel Peters
1,931 PointsHow is this code wrong? nth-child
I'm trying to finish a code challenge and can not get past this question.
@media screen and (min-width: 480px) { #gallery li { width: 28.3333%; }
gallery li: nth-child(4n) {
clear: left; }
}
1 Answer
Mark Pryce
8,804 PointsIs that a bit of white space I see between li:nth-child?
Try removing that :)
Happy coding.
Note: use the cheatsheet for posting code in the future, you can find it below this thread. Helps us read it better :)
Lionel Peters
1,931 PointsLionel Peters
1,931 PointsThanks Mark. It's crazy the little things I over look while learning to code.