I\'m in a situation where the number of elements showed is variable, and I need a strange solution which I\'m not able to achieve, I even doubt if it\'s achievable only with
Absolutely it can be done, with pure CSS. See the complete code below (odd child, last child red; even childs, last 2 childs green)
Click This is one. This is two. This is three. This is four. This is five. This is six.
This is one.
This is two.
This is three.
This is four.
This is five.
This is six.
Enjoy, the coding ;)