Is it somehow possible, via CSS, to select labels which contains *: at the end?
Explained more deeply, as requested:
Sorry, thought it was clear enough. I have a html-label-element … which can contain *: at the end, for example: This is required*:. I would like to color those red.
Currently is not possible match an element through the content via CSS only.
I suppose you need to style labels associated to required input fields (those who ends with a
*) . if you’re in control of markup you could simply add a class.requiredto the labels or, if you’re using html5requiredattribute you could style them in this way:html
css