Sometimes, we want to make sup tag not affect line height with CSS.
In this article, we’ll look at how to make sup tag not affect line height with CSS.
How to make sup tag not affect line height with CSS?
To make sup tag not affect line height with CSS, we set the sup element’s line height to 0.
For instance, we write
sup {
line-height: 0;
font-size: 0.83em;
vertical-align: super;
}
to set the sup elements’ line height to 0.
Conclusion
To make sup tag not affect line height with CSS, we set the sup element’s line height to 0.