Skip to main content
Home / Code Snippets / CSS / Prevent Superscripts and Subscripts from Affecting Line-Height

Prevent Superscripts and Subscripts from Affecting Line-Height

sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
sub { 
  top: 0.4em; 
}
icon-link icon-logo-star icon-search icon-star