Is there any way to select the last class inside a parent ?
There is a fiddle here : https://jsfiddle.net/98oc4Ler/
I tried both :
#banner-message .test:last-of-type {
background: red;
}
#banner-message .test:last-child {
background: red;
}
But it doesn't work, is there any way to select last element with a class inside a parent ?