You can use two selectors :nth-child()to create such a range:
.roundperiodbg:nth-child(n+3):nth-child(-n+10){
background : green;
}
See this demo script .
Explanation:
:nth-child(n+3) selects all items with an index equal to or greater than 3
n | i
0 | 3
1 | 4
2 | 5
3 | 6
..| ..
:nth-child(-n+10) selects all items with an index equal to or lower than 10
n | i
0 | 10
1 | 9
2 | 8
3 | 7
..| 1
When you apply both rules in the same CSS, the element must meet both conditions, so it applies only to elements with an index of 3 to 10.
:nth-child(). @Rajaprabhu