📜 ⬆️ ⬇️

sup breaks texts

Almost all sites using the SUP tag do not instruct the browser how to display it. But the default display is frankly lame - this tag breaks texts, the height of the line where SUP is present increases and as a result we are presented with randomly scattered lines, and not a paragraph. It is even difficult to quickly understand whether such an extra-space is a breakdown between lines, or between paragraphs.


Two variants of superscript: “mine” and standard.

The most interesting thing is that this behavior can be easily corrected , just add a global style like this:

')

UPD : version of Apostol, and even better:

sup { vertical-align: baseline; position: relative; top: -0.4em; }
sub { vertical-align: baseline; position: relative; bottom: -0.4em; }


It is very strange that practically no one fixes o_O, even those who do not forget to arrange Christmas trees with long dashes, even Wikipedia ! where these soups are full.

Source: https://habr.com/ru/post/22311/


All Articles