just create css classes for strings (odd and even), but don't forget that the font color for the text should be transparent relative to the background color
.row_odd{
background: #ffffff;
color: #000;
}
.row_even{
background: #faf8f5;
color: #000;
}
Then in xhtml you need to set a class for each line. For example, using php when you iterate through the lines, you can set the value of the variable $ class .
<tr class="<?=$class?>" onmouseover="">
<td class="center col_check">...</td>
<td class="links">...</td>
<td class="center">...</td>
</tr>
In addition, you can make other CSS classes for each column depend on what you want!
source
share