I want to write a chemical formula without using MathML. The subscript is showing up in the right place but the superscript is too far to the left of the symbol U for Uranium.
<sup>235</sup><sub>92</sub>U
The number on top is the mass number and the number on the bottom is the atomic number.
Note: as it stands, the text for mass number and atomic number is smaller than that regarded as being of sufficient size for legibility.
It’s easy to shift the mass number and/or atomic number using position:relative but that tends to leave unwanted gaps. I have include the text "Element " to demonstrate that there are no unwanted gaps by using CSS Flexbox.
I will say though, if I had some extensive equations to write I would certainly take advantage of it as it has it’s own built in descriptive elements that are styled by the browser defaults. That’s worth a lot right there.
However If you just have one simple expression to write as shown with the Uranium example then it my be worthwhile to roll your own.
I could have reduced my styles but I was trying to get close to the MathML default styling.