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.