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
:first-of-type
As a fallback solution, you could wrap your classes in a parent element like this:
This text should appear as normal This text should be blue. This text should appear red. This text should appear green.
This text should be blue.
This text should appear red.
This text should appear green.