Re: Hover/active link css
by "Darrell King" <darrell(at)webctr.com>
|
Date: |
Tue, 12 Dec 2000 15:41:32 -0500 |
To: |
<hwg-techniques(at)hwg.org> |
References: |
idx |
|
todo: View
Thread,
Original
|
|
<style type="text/css">
a:active { font-style: italic; }
a:hover { font-style: italic; }
a.menulink { <----------------'a.'
text-decoration: none;
color: black;
font-style: normal;
}
</style>
----- Original Message -----
From: "Steve Mount" <steve(at)saltyrain.com>
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