View Single Post
    #2 (permalink)  
Old 07-05-2009
Business-Bytes's Avatar
Business-Bytes Business-Bytes is offline
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,045
Blog Entries: 1
Send a message via Skype™ to Business-Bytes
Default Re: Adding superscripts in CSS website
Originally Posted by Offsite Office Professionals View Post
I've built my website using a CSS template and I need to add superscripts. I tried using <sup> </sup> in the text file but this doesn't seem to work so I'm assuming I need to do something on the stylesheet. Any ideas?
In your HTML try adding a span class surrounding what you want superscripted:
<p>E=mc<span class="superscript">2</span></p>

And in the CSS: .superscript {vertical-align: super; }

HTH a bit,
__________________
Jules, SunRise Virtual Solutions - WordPress Customization & XHTML/CSS Web Sites
Reply With Quote