Title
Cleaner style for sub and sup tags
Short, concise description of the idea
Including the sub or sup tags in text makes lines space unevenly, a little CSS can fix that.
Full description of the idea
Using sub or sup tags causes the line in which that text is included to be taller, which causes lines of text to space unevenly.1 That makes text
(
Read more... )
Comments 1
I'd be inclined to argue that any such display problem is a browser bug, albeit a minor one. Reason suggests sub- and superscripts should not generally affect line-height--but then, I haven't checked the oft-unreasonable CSS spec.
However, if you can input Unicode, and have fonts containing the characters, you can use super- ⁽¹²³⁺⁴⁵⁶⁻⁷⁸⁹⁰⁼ⁿ⁾ and subscripted ₍₁₂₃₊₄₅₆₋₇₈₉₀₌₎ characters, which should minimize the effect where applicable.
Reply
Leave a comment