I want to change the background color of the table to increase readability. After a short search, I found the code that I need.
tr:nth-child(even) {
background-color: #000000;
}
The problem is my solution, I do not have access to the head tag, and I want to implement this using the built-in CSS style, but it does not work.
<tr style="nth-child(even) background-color: #000000;">
Ideas?
source
share