Answer the question
In order to leave comments, you need to log in
What am I doing wrong with nth-child()?
What am I doing wrong with :nth-child()? I want to make such a gallery, but without additional classes...
I get such a gallery only if I add additional classes to each photo, and I'm trying to do it with nth-child(), so that without classes, but by element number, but when I add more elements, everything breaks for me....
codepen
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question