Posted By

jitendraweb on 10/09/09


Tagged

css


Versions (?)

Keep consistent line spacing with sup and sub


 / Published in: CSS
 

  1. sup,
  2. sub {
  3. height: 0;
  4. line-height: 1;
  5. vertical-align: baseline;
  6. _vertical-align: bottom;
  7. position: relative;
  8.  
  9. }
  10.  
  11. sup {
  12. bottom: 1ex;
  13. }
  14.  
  15. sub {
  16. top: .5ex;
  17. }

Report this snippet  

You need to login to post a comment.