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
carlos herrera
5,010 PointsCode Challenge not working?
5 Answers
Dave McFarland
Treehouse TeacherYou have a space between li:nth-child and (4n). Should be li:nth-child(4n) not li:nth-child (4n)
Ethan Rips
3,258 PointsSee this post on CSS Tricks for an explanation of nth-child:
https://css-tricks.com/how-nth-child-works/
HTH,
Ethan
carlos herrera
5,010 PointsThanks for the link Ethan, very useful explanation. Still I don't see the error and I can't make it work. In my workspace it works fine and it's the same code.
Ethan Rips
3,258 PointsCarlos, look more closely at your code. Your nth child code is missing the opening curly bracket.
carlos herrera
5,010 PointsThat's not my code, that's a screenshot from Max, mine is this one http://i.imgur.com/TQ4FMfQ.png
Ethan Rips
3,258 PointsChange (4n) to (4). That should do the trick.
carlos herrera
5,010 PointsAlready tried that, still a bummer. Already sent an e-mail to teamtreehouse, thank you Ethan!
Ethan Rips
3,258 PointsGood luck, Carlos.
Max Kutner
7,595 PointsMax Kutner
7,595 PointsIf you remove the n from 4n, it should work fine!