CSS Styling for the HTML Superscript Tag

Anyone who has used it knows that the default styling for the HTML <sup> tag leaves a lot to be desired.  The biggest is that it modifies the line-height of the line on which it it rendered.

Here is some CSS that fixes that behavior:

sup
    {
    height: 0;
    line-height: 1px;
    position: relative;
    top: -0.6em;
    vertical-align: baseline !important;
    vertical-align: bottom;
    }

Leave a Reply