Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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?

#146253
Paulie_D
Moderator

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?