I have a list of div elements that I'm currently displaying in two columns using CSS float. I would like to "alternate" the border color of these elements. I used alternate in quotes because what I really want is for the two divs in each "row" to alternate. Below is an example of what I want as my end state:
1blue 2green
3green 4blue
5blue 6green
7green 8blue
If I simply use nth-child(even) or nth-child(odd) I get the same color in each column vertically like:
1blue 2green
3blue 4green
5blue 6green
7blue 8green
The divs I want to target are located inside a WordPress loop so I don't have a lot of control over the markup (which is why I was hoping to use CSS nth-child). Unfortunately there isn't any markup that would allow me to target each individual "row".
Is there any kind of nth-child pattern that would allow me to do something like blue[1], green[2],blue[2],etc for an indefinite number of items?
I normally have a very good understanding of CSS but this is hurting my brain a little so thanks in advance for any help!

