CSS only superscript


The commonly used method to format superscript in HTML is by doing in the following way:

<sup>hullo world</sup>

To achieve the same effect using CSS, you can set the vertical-align Property:

<style>
span
{
vertical-align:super;
}
</style>
<p>hullo world<span>TM</span></p>

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Technorati
  • Twitter
  • Yahoo! Bookmarks

  1. No comments yet.
(will not be published)