Is it possible to add two numbers together using only HTMl and CSS, not JavaScript, and then displaying the result on a web page? Can you use a psuedo element or are there inbuilt functions to do this in CSS or HTML?
Is it possible to add two numbers together using only HTMl and CSS, not JavaScript, and then displaying the result on a web page? Can you use a psuedo element or are there inbuilt functions to do this in CSS or HTML?
Assuming you are meaning in order to calculate positioning dynamically?
You can achieve this by using the CSS calc method (see https://developer.mozilla.org/en-US/docs/Web/CSS/calc)