Welcome to WebmasterWorld Guest from 54.242.224.250

Forum Moderators: not2easy

Message Too Old, No Replies

Superscript using vertical-align

     
6:30 am on May 10, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Oct 25, 2006
posts: 1010
votes: 0


I have code like:
[PHP]

2m<sup>2</sup>20m<sup>2

[/PHP]

How to set with CSS this specification?
2:15 pm on May 10, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2003
posts:928
votes: 21


vertical-align:super; is the same as <sup>.
1:47 am on May 11, 2011 (gmt 0)

New User

5+ Year Member

joined:May 11, 2011
posts:2
votes: 0


^Didn't know about this. Great info!
12:13 pm on May 11, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Aug 9, 2008
posts: 961
votes: 0


Just recalling vertical-align and <sup> are not exactly the same: <sup> has a default computed font-size of about 0.8em, so a smaller font-size needs to be set if using vertical-align instead.

@rahulparekh - Welcome to WebmasterWorld :)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members