Answers for "sup in html"

0

CSS how to style <sup>

/* Formatted from source to be a copy/pasted quickly. */

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}
Posted by: Guest on January-26-2021
0

html sup

<p>This text contains <sup>superscript</sup> text.</p>
<style>
  /* Default CSS : */
  sup {
      vertical-align: super;
      font-size: smaller;
  }
</style>
Posted by: Guest on March-14-2021

Browse Popular Code Answers by Language