Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: not2easy

Superscript using vertical-align

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

WebmasterWorld Senior Member 5+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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



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

WebmasterWorld Senior Member 5+ Year Member



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 :)
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month