Using nth child with responsive #3222
Unanswered
samrobbins85
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's a fairly niche use-case, but I'm wanting to have different nth child declarations at different breakpoints, looking like this
The declarations for
.hex-2
and.hex-3
work, however if I do for examplehex-2 sm:hex-3
, I will get the.hex-3
class, but will get the class.hex-2:nth-child(3n+3)
as opposed to.hex-3:nth-child(5n+4)
, you can see this problem in this tailwind playThanks!
Beta Was this translation helpful? Give feedback.
All reactions