I know it’s not exactly what you are looking for, but maybe it’ll help you.
You can try use a jQuery selector :contains()
, add a class and then do a normal style for a class.
More Related Contents:
- Is there a CSS parent selector?
- Complex CSS selector for parent of active child [duplicate]
- Select every Nth element in CSS
- CSS3 selector :first-of-type with class name?
- CSS Selector that applies to elements with two classes
- Why isn’t it possible to combine vendor-specific pseudo-elements/classes into one rule set?
- CSS ‘>’ selector; what is it? [duplicate]
- Select element based on multiple classes
- Select elements by attribute in CSS
- Should I avoid using !important in CSS?
- CSS: How to say .class:last-of-type [classes, not elements!] [duplicate]
- How to write a CSS hack for IE 11? [duplicate]
- Is the CSS :not() selector supposed to work with distant descendants?
- :not() selector not behaving the same between Safari and Chrome/Firefox
- Combining :last-child with :not(.class) selector in CSS
- Invalid CSS selector causes rule to be dropped: What is the rationale?
- Style child element when hover on parent
- How to select the first, second, or third element with a given class name?
- Why can’t you group descendants in a CSS selector?
- Combine :after with :hover
- What does the dot mean in CSS?
- Not CSS selectors
- :active css selector not working for IE8 and IE9
- CSS selector involving pseudo class first-child and dropcap
- Multiple descendant children selector with css [duplicate]
- Targeting position:sticky elements that are currently in a ‘stuck’ state
- Select odd even child excluding the hidden child
- Comma in CSS, multiple selectors using the same CSS
- CSS class repetition to increase specificity
- select second child