Is it possible to use the CSS3 selector :first-of-type
to select the first element with a given class name? I haven\'t been successful with my test so I\'m thin
Not sure how to explain this but I ran into something similar today.
Not being able to set .user:first-of-type{}
while .user:last-of-type{}
worked fine.
This was fixed after I wrapped them inside a div without any class or styling:
https://codepen.io/adrianTNT/pen/WgEpbE
Not working while this P additional tag exists
A
B
C
Working while inside a div:
A
B
C