Welcome to WebmasterWorld Guest from 54.221.49.52

Forum Moderators: not2easy

Message Too Old, No Replies

Superscript using vertical-align

     

toplisek

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?

rainborick

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

WebmasterWorld Senior Member 10+ Year Member



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

rahulparekh

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



^Didn't know about this. Great info!

alt131

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

Hot Threads This Week

Hot Threads This Month