Change color of even and odd row
Posted: 06 Jul 2020, 16:42
Hello, I am trying to change to alternating colors for even and odd rows as I find the default to not have enough contrast. I searched around but could not find a working solution.
Here is the code that I am currently trying:
Any help is appreciated.
Here is the code that I am currently trying:
Code: Select all
.p-datatable.p-datatable-odd {
background-color:red;
background-image: none;
}
.p-datatable.p-datatable-even {
background-color:blue;
background-image: none;
}