View Single Post
Old 05-17-2021, 12:01 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
superscript code

Hi

I was used to write this in the CSS file
Code:
sup { 
 vertical-align: text-top;
 font-size: smaller;
}
and be happy with it. For some reason, it does not seem to display so well recently(including with Calibre but not only). I had used text-top because super left too much space between lines.

What would be the reason for a faulty display of the above code?
What would be the other proposals for ePub3 books?

1. Trust the user agent? (with a "naked" sup tag)

2. When possible, use special characters such as SUPERSCRIPT TWO (\00b2)

3. With suitable font, use open-type alternates such as:
font-variant-position: super (text-top?);
font-variant-numeric: ordinal;

4. ?
roger64 is offline   Reply With Quote