Superscript in CSS only?

How can I get superscript done, only in CSS?

I have a stylesheet where I mark the external links with a superscript character, but I’m having a hard time getting the character aligned correctly.

What I have currently, looks like this:

a.external:after {
  font-size: 50%;
  vertical-align: top;
  content: "+";
}

but it doesn’t work.

Naturally, I’d use the <sup>-tag, only if content would allow for HTML…

15 Answers
15

Leave a Comment