Re: Solution - how to superscript without affecting line spacing

by Charles A Upsdell <cupsdell(at)upsdell.com>

 Date:  Mon, 03 Mar 2003 15:07:30 -0500
 To:  hwg-techniques(at)hwg.org
 Cc:  "rudy" <rudy937(at)rogers.com>
 References:  0
  todo: View Thread, Original
At 02:18 PM 03/03/03, you wrote:
> > The HTML way to superscript is to do something like 2<sup>nd</sup>,
> > which pushes the superscript up so high that the line spacing typically
> > expands to make room for it.
>
>the way i used to do it is like this --
>
>        E = mc<small><sup>2</sup></small>
>
>sup by itself just raises the text
>
>small makes it smaller, often a typographically desired
>characteristic of a superscript

I should have mentioned that my COMPLETE CSS for controlling the 
superscript is:

     sup { vertical-align:text-top; font-size:90%; }

enabling me to control the superscript position and size in one go.


-
Chuck Upsdell
Email:     cupsdell(at)upsdell.com
Website:   http://www.upsdell.com/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA