/* Check if there's an even number of children */
.element:nth-last-child(even):first-child,
.element:nth-last-child(even):first-child ~ .element {
...
}
/* Check if there's an odd number of children */
.element:nth-last-child(odd):first-child,
.element:nth-last-child(odd):first-child ~ .element {
...
}
I suppose the syntax can be :total-even and :total-odd.
I suppose the syntax can be
:total-even
and:total-odd
.