Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Superscript not working in a web browser

Tags:

html

I'm doing some front end development and the craziest thing is happening. When I use the <sup></sup> tag, it is not functioning. No matter what I try to superscript it only displays correctly when viewed in a live setting in Dreamweaver but not in any browser. What am I missing? Is the tag deprecated?

like image 255
ggalex Avatar asked Sep 15 '11 14:09

ggalex


2 Answers

I had the same issue. It was a CSS conflict. Skylar was close but I'll do you one better.

sup {font-size:xx-small; vertical-align:super;}

;-) ahhhh, works like a charm.

like image 163
CA3LE Avatar answered Oct 02 '22 22:10

CA3LE


My guess is you might have reset the default styles on sup.

You can always reapply them:

sup {font-size:xx-small; vertical-align:top;}
like image 9
Skylar Anderson Avatar answered Oct 02 '22 21:10

Skylar Anderson