Skip to content

Instantly share code, notes, and snippets.

@onsamyj
Last active July 19, 2023 07:11
Show Gist options
  • Save onsamyj/bb3a7894db5cb5e8f4e664ae1f1033e4 to your computer and use it in GitHub Desktop.
Save onsamyj/bb3a7894db5cb5e8f4e664ae1f1033e4 to your computer and use it in GitHub Desktop.
Proper <sub> and <sup> tags #CSS
sup, sub {
position: relative;
vertical-align: middle;
font-size: 75%;
font-weight: normal;
}
sup {
bottom: 0.5em;
}
sub {
top: 0.5em;
}
/* #css */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment