Styling supercsript in CSS

Ever wanted to use the semantically correct HTML SUP tag for superscript but not been able to get the styling right? Well if you thought you’d “just fix it during lunch-break” like I just did, but ended up still fint-tuning the presentation an hour later, have a look at this superscript fix. It’s basically a default over-ride, then styled relative to the parent text. Exactly what you’d want. And still leaves you time for lunch.

2nd June 2010

Ben Childs

Tags: ,