Re: Hover/active link css

by =?Windows-1252?Q?Josu=E9_Figueira_Machado?= <jmachado(at)mindspring.com>

 Date:  Tue, 12 Dec 2000 15:37:32 -0500
 To:  "Steve Mount" <steve(at)saltyrain.com>,
<hwg-techniques(at)hwg.org>
 References:  idx
  todo: View Thread, Original
Try:

<style type="text/css">
<!--
    a:active { font-style: italic; }
    a:hover  { font-style: italic; }
    a:hover.menulink, a:active.menulink {
        text-decoration: none;
        color: black;
        font-style: normal;
    }
-->
</style>

HTH,

Josu�

----- Original Message -----
From: "Steve Mount" <steve(at)saltyrain.com>
To: <hwg-techniques(at)hwg.org>
Sent: Tuesday, December 12, 2000 2:31 PM
Subject: Hover/active link css


>
> OK, so, I'm using the pseudo classes a:hover and a:active to make my
> hyperlinks be italic when the mouse is over them.  But now, I want to have
> *some* links be normal.  Is this possible?  No combination I've tried can
> get me this.  I'm developing for MSIE 5+ on an intranet.  Here are some
code
> snippets:
>
> <style type="text/css">
>
> a:active { font-style: italic; }
> a:hover  { font-style: italic; }
>
> .menulink {
>   text-decoration: none;
>   color: black;
>   font-style: normal;
> }
> </style>
>
> ...
>
> <a href="somelink.html">This link I want to be italic</a>
> <a href="somelink.html">and this in italic</a>
> <a href="somelink.html">and this and 100 other links on this page</a>
>
> <a href="anotherlink.html" class=menulink>But this link I want with no
> underline, in black, normal font</a>
>
> The last link is not underlined, and is black, but it italicizes on
> mouse-over.  Ideas?
>
> -------------------------------------------------------------
> Steve Mount, Software Engineer            steve(at)saltyrain.com
> Home Site                            http://www.saltyrain.com
> US Constitution Online          http://www.usconstitution.net
> Clear your Soul            http://www.anonymousconfession.com
> Manager, HWG Logo Team                     http://www.hwg.org
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA