I am trying to bring the appearance of a table to a list of definitions and want the even lines to differ from the odd ones with some css3 selectors.
#specs dt:nth-child(even), #specs dd:nth-child(even) { background: blue; }
This css code results in dt without backgroundcolor, and each dd in blue. As I can see, the rendering engine actually counts siblings different from the selected ones, which leads to the fact that every dt is odd and every dd is even.
source share