View Single Post
  #2 (permalink)  
Old 07-05-2009
Business-Bytes's Avatar
Business-Bytes Business-Bytes is offline
Active Member
Company name: SunRise Virtual Solutions
VA Feedback: (3)
 
Join Date: Jun 2009
Location: Iowa
Posts: 706
Send a message via Skype™ to Business-Bytes
Default Re: Adding superscripts in CSS website

Quote:
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
www.sunrisevirtualsolutions.com

Last edited by Business-Bytes; 07-05-2009 at 02:37 PM.. Reason: Added info...
Reply With Quote