Keep consistent line spacing with sup and sub


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.