Open this example in the interactive library
Source code
<style>
.demo sup {
vertical-align: super;
font-size: 0.65em;
line-height: 0;
}
</style>
<p class="demo">Area is measured in m<sup>2</sup>.</p>
Keep a super-script from changing line height with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo sup {
vertical-align: super;
font-size: 0.65em;
line-height: 0;
}
</style>
<p class="demo">Area is measured in m<sup>2</sup>.</p>