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

CSS How to Make a Website Responsive Web Design and Testing Refactor the Layout

Olesya Kravchenko
Olesya Kravchenko
8,958 Points

Pseudo class problem. There is a bummer appears. That`s the code: #gallery li: nth-child(4n) {clear:left;}

I`ve consulted other similar questions but still the bummer appears.

2 Answers

Sam Baines
Sam Baines
4,315 Points

HI Olesya - make sure you have no gaps/spaces in the li:nth-child(4n) on the #gallery selector and make sure its inside the media query in the css. I have just passed the challenge using this code.

#gallery li:nth-child(4n){
clear: left;
}
Sam Baines
Sam Baines
4,315 Points

glad I could help.