Exclusive: Rock Band Unplugged Track List

Prevent superscripts from distorting line-height

Are you ever bugged by superscript elements messing with the line height of your text? No? Well, honestly, it's not really the kind of thing one would spend a lot of time thinking about - that is, until one encounters the problem oneself.

It's an arguably minor problem that can cause major headaches, especially when a client or designer is resolute about having the entire page, text included, look exactly like the mock-up. But fortunately, there is a fix! Mzajac of Wikipedia explains how to force the <sup> element down ever so slightly, using relative positioning and the oft-overlooked vertical-align: baseline.

Reader Comments

(Page 1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: