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 trialAllison Walker
17,137 PointsWhy am I not advancing through this challenge? I believe I have the correct answer.
the question is inside the media query, clear the 4th gallery list items. What is incorrect?
gallery li:nth=child(4n) {
clear: left; }
4 Answers
Joe Bruno
35,909 PointsYou are close: nth-child not nth=child
Check out the specifications: http://www.w3schools.com/cssref/sel_nth-child.asp
Ricky Catron
13,023 PointsGallery is an ID. Don't forget that ID's need a # before them in order to select the correct thing. Else it looks for a <gallery> tag which doesn't exist. Lastly it should be nth-child not nth=child.
Jason Anello
Courses Plus Student 94,610 PointsHi Ricky,
It's likely the only mistake is the =
This comes up a lot in the forums. When the css isn't posted correctly then the #
for id's is interpreted as an <h1>
using the markdown syntax. That's why we see the selector bold and at a larger font size.
Ricky Catron
13,023 PointsOH....whoopsie. Thanks for letting me know!
Allison Walker
17,137 PointsYes, thanks. The = was the problem. (You answered while I Googled the solution.)
Logan R
22,989 PointsIt should be li:nth-child(4n). You need to change that = to a - :)