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 CSS Selectors Advanced Selectors :nth Pseudo-Class Challenge

Hy I get here the error message: Are you floating the images left?. But the left is shown in the console

Hy thanjks for the help.

So I dont even understand the wuestion, because it says it want 3 floated images per row.

And than the instruct me to target the fourth element and then every third after. Which are not consecutive elements so how could they be then 3 floated image in one row.

And then it instructs to float them to the left and add clear left. The targeting works based on the console and float-left and clear-left are there. At the 4th image and then at every 3rd after that. but I still get the error message: 'did you float the images'

So I am sorry but I am a bit stuck with this. Thanks a million for your suggestions

Paul Walker
Paul Walker
28,904 Points

Check your @media query.

2 Answers

Paul Walker
Paul Walker
28,904 Points

Hey Sandor Deli,

looks like you are having problems with the nth-child. Here is how the nth-child works: So here is what it looks like img:nth-child(2n + 3); So, what this is saying is that start with the 3rd image than assign every 2nd image. Hope this helps.

Thanks a million guys for your efforts to answer my question. So Since then I have found the question and the answer on internet and it has turned out that the question can have two kinds of interpretation and the other interpretation has a different solution. So I took that solution (which I reproduced by myself) and then could get forward with the coding challenge.

Thanks a million for your efforts guys.