homepage Welcome to WebmasterWorld Guest from 54.167.238.60
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Superscript using vertical-align
toplisek




msg:4310228
 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




msg:4310341
 2:15 pm on May 10, 2011 (gmt 0)

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

rahulparekh




msg:4310617
 1:47 am on May 11, 2011 (gmt 0)

^Didn't know about this. Great info!

alt131




msg:4310732
 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