7 Replies Latest reply on Dec 28, 2010 12:29 PM by Jeremy bowmangraphics

    CSS Superscript and line spacing


      Hi everybody,

      I've managed to get a SUBscript without messing the line spacing, using

      vertical-align: baseline;

      position: relative;

      top: 0.4em


      AND - I don't know why I had to do this too, but it worked - enclosing each subscript element with <span class="sub"></span> in the XHTML.


      Now: I can't do the same with SUPERscript. I've tried -0,4em, tried bottom, tried bottom AND -0.4, tried top.... Do I have to monkey with the XHMTL again????

      Superscript work when I simply use vertical-align: super, but I don't like the result.


      Please help! Thank you!