Forum Moderators: not2easy

Message Too Old, No Replies

Affect a Symbol

Rule for specific Symbol

         

aaronjf

3:15 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



How would I write a rule into the body tag to make all ® superscript?

DrDoc

3:59 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It can't be done...

What can be done, however, is wrap <sup></sup> around all ®.
<sup>®</sup> = ®

aaronjf

5:28 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



I was hoping to avoid that, but I guess that is what I will have to do.

DrDoc

6:40 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No reason to avoid it, since that's what the tag is for ;)

aaronjf

7:01 pm on Apr 23, 2004 (gmt 0)

10+ Year Member



I prefer doing as much as possible through CSS ;-)

D_Blackwell

7:47 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But that isn't CSS. It's HTML. No need to trick it up.

D_Blackwell

7:56 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I take that back - sort of.
.reg {vertical-align: super;}
This will do it with CSS, but you'll still have to <span ...> each occurrence

D_Blackwell

8:12 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not able to leave well enough alone. The relative size of the mark will vary, depending upon whether you use <sup> or <span ...>. The span gives a larger font, relative to <sup>

However the <sup> can be given a specific font-size, while the vertical-align cannot.

Class the <sup> and you are all powerful.

Back under my rock now:)

DrDoc

8:24 pm on Apr 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



no need to assign a class to sup...

sup {
color: red;
}