odd and even variants does not work (Please Help) #3148
Answered
by
adamwathan
harinathpamu
asked this question in
Help
-
It selects everything : ( Please Help ... |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
Dec 20, 2020
Replies: 1 comment 1 reply
-
Hey! You need to use those utilities directly on the element you are trying to affect, not the parent: https://play.tailwindcss.com/mdE23PLBQI <div>
<div class="odd:bg-blue-500">Row</div>
<div class="odd:bg-blue-500">Row</div>
<div class="odd:bg-blue-500">Row</div>
<div class="odd:bg-blue-500">Row</div>
<div class="odd:bg-blue-500">Row</div>
<div class="odd:bg-blue-500">Row</div>
</div> They are designed to be used in loops. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
harinathpamu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! You need to use those utilities directly on the element you are trying to affect, not the parent:
https://play.tailwindcss.com/mdE23PLBQI
They are designed to be used in loops.