homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Superscript using vertical-align
toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4310226 posted 6:30 am on May 10, 2011 (gmt 0)

I have code like:
[PHP]

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

[/PHP]

How to set with CSS this specification?

 

rainborick

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4310226 posted 2:15 pm on May 10, 2011 (gmt 0)

vertical-align:super; is the same as <sup>.

rahulparekh



 
Msg#: 4310226 posted 1:47 am on May 11, 2011 (gmt 0)

^Didn't know about this. Great info!

alt131

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4310226 posted 12:13 pm on May 11, 2011 (gmt 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 :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved