[&:not(:first-child)]
not working
#11327
-
Can anyone tell me why <div class="[&:not(:first-child)]:bg-red-500">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</div> |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
May 31, 2023
Replies: 2 comments 3 replies
-
Seems to be working fine, the effect can be seen when adding another copy: https://play.tailwindcss.com/wGwx8KxIvA. If it does not work in your project, consider checking:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
foremtehan
-
Not work at all. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be working fine, the effect can be seen when adding another copy: https://play.tailwindcss.com/wGwx8KxIvA. If it does not work in your project, consider checking:
content
file globs sufficiently cover the file that the code appears in.