Wednesday, July 8, 2009

Solving Line height issue due to superscript

I am a web designer.I have recently comes across this issue.If we use superscript in text in a paragraph.We will be getting extra top padding above superscript.We can remove the extra top spacing by using the following css.

sup { line-height:0; vertical-align:0.2em; }

1 comment:

Debbie Drechsler said...

Thanks! I was struggling with this and googled my way to your post. It did the trick beautifully!