The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to have a calculation on DIV.innerHTML using ONLY CSS
Hello Guys,
I would like to know how we can have a calculation on DIV’s innerHTML value. Please mind, I am looking for only CSS solution… I know JS can do :)
for an example multiplication by -1 ========
<div>-89</div>
and After applying CSS I can see output as beneath –
<div>89</div>
div>89</div>
CSS can’t do calculations on HTML content…it styles content, it can’t change it