Selector :nth-child without a break?

Amemssephoafe

New Member
i have this example html code.\[code\]<table> <tbody> <tr class="test"><td>Test</td></tr> <tr><td></td></tr> <tr class="test"><td>Test</td></tr> <tr class="test"><td>Test</td></tr> </tbody></table>\[/code\]And my css code is following:\[code\]table tbody tr.test:nth-child(2n+1) { background-color: #ff00ff;}\[/code\]And the output is a wrong :(It seems that there is a break with the tr with no class.*Why!?*Look at jsfiddle.net: http://jsfiddle.net/Bubelbub/rFddk/Thank you in Advance!
 
Back
Top