nth child of div css code example Example: pair impaire css tr:nth-child(even) {background: #CCC} tr:nth-child(odd) {background: #FFF}