Superscripts in CSS
debbie campbell
Today I’m coding a site that needs little ‘TM’ text attached to all the product names. I wasn’t sure how to do this but Wikipedia to the rescue:
/* keep superscript text from breaking the line-spacing */
#bodyContent sup {
font-size: smaller;
vertical-align: baseline;
position: relative;
bottom: 0.33em;
}
This code plays nicely with FF, IE7 and 6, and Opera.
Posted in CSS |







