How to modify the background color of "table-zebra" class? #2895
Answered
by
Vijaykv5
iamyourdre
asked this question in
Q&A
-
I want to change the background color of "table-zebra" class. Is this possible to do? Oh btw, i have tried using: |
Beta Was this translation helpful? Give feedback.
Answered by
Vijaykv5
Mar 9, 2024
Replies: 1 comment 1 reply
-
Hi @iamyourdre I think Daisy UI does not provide a built-in utility to directly change the background color of the "table-zebra" class. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
iamyourdre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @iamyourdre
I think Daisy UI does not provide a built-in utility to directly change the background color of the "table-zebra" class.
If you need to customize the background color of the zebra-striped table, you'll likely need to override the existing styles using custom CSS
You can add it in the CSS file like this :
.table-zebra tbody tr:nth-child(odd) { background-color: #00000 }