0

I have a situation where I need to affect styling on some text and I only have access to the CSS. I do not have access to any of the underlying code, so I can not wrap the text in spans or anything of the sort.

The text is "Status: In Stock".

Is there any way with CSS alone that I can make 'Status:' one color and 'In Stock' another color? I was hoping I could so something with :first-word/:last-word, but that apparently doesn't exist.

Another thought was if there was some way to say "style the word before ':' one way, and after ':' another way"

Is any of this possible purely with CSS?

danzo
  • 301
  • 1
  • 5
  • 18

0 Answers0