I have a table and I want to shade each alternate row, apart from the row with the class "openingTimes
".
This opening times row should not be shaded, but the pattern after this row should be continued, like this, (with bold representing shading!):
[ Info 1 ] [ Info 2 ] [ Opening Times Row ] [ Info 3 ] [ Info 4 ] [ Info 5 ] [ Info 6 ]
The CSS I have is:
table tr:not(.openingTimes):nth-child(even)
{
background-color: #eeeeee;
}
But what this results in is:
[ Info 1 ] [ Info 2 ] [ Opening Times Row ] [ Info 3 ] [ Info 4 ] [ Info 5 ] [ Info 6 ]
I want the Info 3 to be shaded and the pattern to continue from there.
What am I doing wrong? Thanks!
Edit: OK, here's a fiddle: http://jsfiddle.net/QWjnm/