Style the last element having a specific class [closed]

There is no (good) way to solve this problem in its current state with CSS. The best solution is to add an extra class to the last active div, or to use javascript

See this question for more details