Link underline on "Registered" Symbol

anna

New Member
Hello all,

I am making links to products in DW cs4.

Some of the products have "registered" symbols- how do I make a link without having an underline on the super-scripted registered symbol?

Thanks for any tips.
 

darrenfox

New Member
<html>
<head>
<title>Example</title>
<style>
a:link sup {
text-decoration: none;
}
</style>
</head>
<body>
<a href="link.html">Example <sup>&reg;</sup></a>
</body>
</html>
 
Last edited:

anna

New Member
Thank you for the tip- I am familiar with the text decoration property but it's not what I am looking for. Here is a shot with no rules applied:

SS01.jpg

Here is a shot with the text-decoration declared:
SS02.jpg

Here is a shot of what I am trying to do:
SS03.jpg



I can always just add the registered symbol and NOT superscript it, but I'd rather do that as a last resort.

Thank you again for your help, darrenfox, do you have any other suggestions?
 

PixelPusher

Super Moderator
Staff member
Hi Anna, what browser gave you the results with the line right under the reg symbol? I could not get that result.

This code works the way you want in IE8, FF3.5, Chrome, Safari 4, and Opera 10

CSS
Code:
a {
font:bold 10pt Arial, Helvetica, sans-serif;
color:#555;
text-decoration:none;
}
a:hover {
text-decoration:underline;
}

HTML
HTML:
<a href="">Link<sup>&reg;</sup></a>
 

johnscott

New Member
Because what ever is inside the <a> tag is going to be underlined, the browser just recognizes the <sup> and shrinks the decoration on it too.

This is a bit of a cheat, but it gives you what you're looking for.

<div style="border-bottom: solid 1px #000; width:1px; white-space:nowrap;"><a href="#" style="text-decoration:none;">TruTOF<sup>&reg;</sup>HT GC-TOFMS</a></div>

I hope that helps.
 

anna

New Member
Thank you Pixel and Johnscott,

I will try John's cheat method right now and let you know how it works.

Pixel- I am using FF 3.5 when I got that result. I will try again though...

Thanks again! I will keep you posted!
 

PixelPusher

Super Moderator
Staff member
..

<div style="border-bottom: solid 1px #000; width:1px; white-space:nowrap;"><a href="#" style="text-decoration:none;">TruTOF<sup>&reg;</sup>HT GC-TOFMS</a></div>

No offense but having to wrap a div around each link seems a bit excessive.
 
Top