Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

superscript altering the line height

Tags:

html

css

I have a superscript that is messing up the line spacing. How do i make it even?

I tried

sup{vertical-align:0; position: relative;}

but that doesn't help.

Any suggestions?

like image 866
user544079 Avatar asked Nov 20 '25 01:11

user544079


1 Answers

We can achieve it by ignoring the <sup></sup> tags and directly using something like

<span style="position:relative; top:0.3em;">
like image 51
user544079 Avatar answered Nov 22 '25 15:11

user544079