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 trialAlvin Pollard
1,934 PointsCode challenge (Responsive Web Design and Testing) stage 8. Stuck on part 2 of task...
Hi everyone!
I'm not sure what I'm missing here but the challenge says "Inside the media query, clear the left side of every 4th list item in the gallery."
To which I reply with:
@media screen and (min-width: 480px){
#gallery li {
width: 28.3333%;
}
#gallery li:n-th child(4n) {
clear: left;
}
}
It's giving me this error: Bummer! Did you set "clear: left" on every fourth gallery list item?
I thought I did. Is it something that I wrote or perhaps another error?
As always, thanks in advance for any assistance!
Cheers!
Alvin
3 Answers
Eduard Grubman
15,067 PointsHey Alvin,
it's nth-child, that might help :)
Alvin Pollard
1,934 PointsAfter grabbing a cup of coffee, I realized that it's nth-child not n-th child... :P Solved. Derp. :)
tofful
6,988 Pointsgallery li:n-th-child(4n) {
clear: left;
}