Change color of even and odd row

UI Components for React
Post Reply
Posts: 2
Joined: 06 Jul 2020, 16:37

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:

Code: Select all

.p-datatable.p-datatable-odd {
    background-image: none;

.p-datatable.p-datatable-even {
    background-image: none;
Any help is appreciated.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests