Bob Meetin wrote:
> See: sample link at: 
> www.dottedi.biz/codesamples/misc/text-decoration.html
>
> I'm wondering why I cannot seem to override the natural link underline 
> by using a span setting text-decoration to none as in:
>
> <a href="http://www.mysite.com"; target="_new">Mysite.com <span 
> style="text-decoration: none;"> - Service and Repair of Broken and 
> damaged HTML code</span>
>
> Basically I want the Service and Repair to not be underlined.  Seems 
> pretty simple but...
>
>   
Hi

The text is underlined because it's an anchor (link).  So your style 
needs to be on the anchor.

In-line styles are usually a really bad idea, by the way.  Much better 
to use a stylesheet, something like this (off the top of my head):

a.service {
   text-decoration: none;
}

And then in your HTML:

<a class="service" href="http://www.mysite.com"; ...>Service and Repair 
... </a>

Something like that anyway.

You'll also need to think about how to indicate to your users that it's 
a link.

Cheers


Peter
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to