Re: Re; How to remove the underline on links

by "Jason Daniel Henderson" <jasonh(at)hic.net>

 Date:  Mon, 1 Oct 2001 09:53:13 -0500
 To:  <hwg-basics(at)hwg.org>
 Cc:  "Jami" <designsbydusty(at)tiadon.com>
 References:  xs4all dfyh gte
  todo: View Thread, Original
> Jami wrote:
>
> > What about for those of us who do not yet know how to use style sheets?
>
> HTML doesn't provide any method for getting rid of underlines on links.
> Style sheets are the only way you can do this.
>
> Larry Coats

I helped Jami with her problem yesterday off-list by accident without
sending it to the list as well.  Here is the answer to save everybody else
some time.

Just add style="text-decoration:none" to your link code.  ie. <a
href="./" target="_blank" style="text-decoration:none">Link</a>
This won't affect any hover coding either.  This works in IE & NS.  I
recommend only removing
underlines for sections that are clearly navigational areas.  Hope that
helps.

Jason
P.S.  An easier way to remove links underlines is to have something short
and and sweet to place between the <head></head> tags.

<style type="text/css">
<!--
a{text-decoration: none;}
a:hover {color: #ff0000; text-decoration: underline;}
-->
</style>

If you use this code, you can still make a few links have underlines by
putting this with their link code:
style="text-decoration:underline" to your link code.  ie. <a
href="./" target="_blank" style="text-decoration:underline">Link</a>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA