dt:nth-of-type(odd) { background-color: blue; } dd:nth-of-type(even) { background-color: red; }
use nth-of-type instead of nth-child