[Solved] What are these CSS selectors tr.odd and tr.even?


Whatever is creating the tr elements would have to apply those classes. That is, it’s just styling something like this:

<tr class="odd">...</tr>
<tr class="even">...</tr>

However, you could instead use the nth-child selector with the keywords “odd” and “even”, which might be more along the lines of what your question was asking about:

tr:nth-child(odd) {
    color: #6e6e6e;
    background-color: #ffffff;
}

tr:nth-child(even) {
    color: #6e6e6e;
    background-color: #ffffff;
}

In the 2nd case, you wouldn’t need to explicitly apply “odd” and “even” classes like in the 1st example.

2

solved What are these CSS selectors tr.odd and tr.even?