I\'m trying to make a comment system where nested comments have zebra background colors. (Blue bg replies to white bg replies to blue bg...)
Instead of referring to
Look for nth-child in the CSS reference, selectors section. It's used something like this:
tr:nth-child(even) { background: #cccccc; } tr:nth-child(odd) { background: white; }
you don't have to apply different classes to alternating rows; CSS itself will distinguish even rows from odd rows.