S
S
Sergo Zar2021-06-29 19:59:10
css
Sergo Zar, 2021-06-29 19:59:10

How to make sup and sub be one above the other?

There is a formula that looks like this:
60db4e0da635e350497781.png

I'm trying to do this:

but the text in the sup tag is to the right of the sub, and not above it (yes, I know that it should be so by default).

How to make sup above sup?

ps yes - I could do it, but there are a lot of such formulas in the text (and they have different lengths and complexity) and I would like to have some kind of universal solution and not prescribe for each -left tag. sup{position:relative; left: -30px;}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergo Zar, 2021-06-30
@Sergomen

solved the problem like this:

P
profesor08, 2021-06-29
@profesor08

Select a block of the desired width and height and place everything inside the absolute. Or use libraries specially designed for formulas.
https://developer.mozilla.org/ru/docs/Web/MathML/A...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question