Making Servicemarks Work

Jan 30 2009

The servicemark (SM) is quite the unusual little character on the web. One might assume that it would act like the copyright symbol (©) or the trademark symbol (™) and have its own special HTML entity code, but alas, this is not the case.

The obvious solution is to use the <sup> tag, but… it doesn’t look that awesome.

sup not servicemark

It’s not the end of the world, but it’s a bit large for our purposes and doesn’t really look like a trademark-type character, just some floaty text.

There is a unicode character that represents this mark, which can be displayed as servicemark but unfortunately it really isn’t that well supported. Many fonts don’t have this character defined, and even if they do, it usually doesn’t show in IE and instead renders as an empty box. Frustrating!

Fortunately, there is a way around this, as discovered by someone named Tim McCormack:

Lucida Sans Unicode is one of the few fonts that does support the servicemark character. Therefore, if you put a span around your unicode character and set the styles for that span to render it in Lucida Sans Unicode, it appears to work in most browsers.

HTML:

Servicemark HTML

CSS:

Servicemark CSS

And the end result:

Servicemark Result

The text is now smaller, still superscript, and more trademark-esque. Bonus: It works in IE6!

Posted by Meggan at 4:30 PM

Published in Development, Tips & Tricks on Friday, January 30th, 2009

3 Responses

  1. 1
    verity says:

    Wow! I feel so out of the loop. I have no idea what a service mark is for. Time for some research :) Great tip.

    Follow up: Here’s the wiki page: http://en.wikipedia.org/wiki/Service_mark


  2. 2
    Jill says:

    Eenteresting. You learn something new everyday. Or sometimes even two things. Like today I learned:

    1) How to render a service mark on a webpage.

    and

    2) What a service mark is.

    Maybe you should suggest your technique to Wikipedia. Their SM symbol doesn’t render in IE 6 :)

    If people would just register their service with the government we wouldn’t have this problem! We can just use ®


  3. 3
    Meggan says:

    Probably should have prefaced this post with why I even had to go research servicemarks in the first place, but suffice to say a client has requested we add this mark to one of their offered services on their website. No idea if they are planning on registering it or not.