Home › Forums › CSS › Is it possible to add text or a character based on a variable? › Reply To: Is it possible to add text or a character based on a variable?
CSS can style what is there but it can’t actually detect what the content of the element is.
If you were able to apply a class or data-type to the variable ‘element’ as it is injected into the page…that’s another matter.
How are you getting this ‘variable’ into the HTML?