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?
August 9, 2013 at 8:10 am
#146253
Member
Basically….No.
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?