I am trying to change the color of all even titles from h2 to orange using nth-child. However, I seem to have made a mistake somewhere and can't figure out what it is...
*{
font-size: 1em;
}
h2{
font-size: 1.5em
}
h2:first-letter{font-size: 150%}
h2:nth-child(odd){
color:#ef3909;
}
The issue lies in the last line of the CSS code with the nth-child selector not working as expected. Any help would be greatly appreciated. Thank you.