Select odd items except first child
I have div elements like this
<div id="container">
<div id="content">
<div class="arrow"></div>
</div>
<div id="content">
<div class="arrow"></div>
</div>
<div id="content">
<div class="arrow"></div>
</div>
<div id="content">
<div class="arrow"></div>
</div>
</div>
I want to choose the first child, but I have css like this
#container #content:nth-child(odd) .arrow {
background: red;
}
#container #content:nth-child(even) .arrow {
background: green;
}
#container #content:first-child .arrow {
background: pink;
}
But then the first child is red, because the first child is an odd number.
I tried using this and I donโt know if it will work and it doesnโt
#container #content:nth-child(odd):not(:first-child) .arrow {
background: red;
}
But then the first arrow of the div is still red.
What am I doing wrong?
+4