Problem with odd and even

What am i doing wrong here? Its not working as a i excepted. 1, 3 and 5 should be green and 2 and 4 should be red. Is something wrong with codepen?

Your third closing </div> has a typo (it’s spelled dvi)

1 Like

Damn it xD thank you…