jastroem
asked on
CSS -Hover Links / 2 types on the same page
Hi
I'm using a externe StyleSheet to get some Hover Links on some pages.
However on one particular page I need to have another color on the Hover Links, or the even better, a possibility to use the "normal" link style.
Is there some kind of a "dont use the style for this" TAG?
Hope someone can help me realize this!
Thank you
Jörgen Aström
-----------------
This is the style I use:
A:LINK {
color : #40FFFF;
text-decoration : none;
font-weight : bold;
}
A:VISITED {
color : #40FFFF;
font-weight : bold;
text-decoration : none;
}
A:Activ {
color : #40FFFF;
font-weight : bold;
text-decoration : none;
}
A:Hover {
font-weight : bold;
color : orange;
}
I'm using a externe StyleSheet to get some Hover Links on some pages.
However on one particular page I need to have another color on the Hover Links, or the even better, a possibility to use the "normal" link style.
Is there some kind of a "dont use the style for this" TAG?
Hope someone can help me realize this!
Thank you
Jörgen Aström
-----------------
This is the style I use:
A:LINK {
color : #40FFFF;
text-decoration : none;
font-weight : bold;
}
A:VISITED {
color : #40FFFF;
font-weight : bold;
text-decoration : none;
}
A:Activ {
color : #40FFFF;
font-weight : bold;
text-decoration : none;
}
A:Hover {
font-weight : bold;
color : orange;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this
<head>
<style>
a:hover{
font-weight:bold;
}
a.no:hover{
font-weight:normal;
font-style:italic;
}
</style>
</head>
<body>
<a href="javascript:void(0)"> a link</a>
<p><a href="javascript:void(0)" class="no">a link</a>
</body>
<head>
<style>
a:hover{
font-weight:bold;
}
a.no:hover{
font-weight:normal;
font-style:italic;
}
</style>
</head>
<body>
<a href="javascript:void(0)">
<p><a href="javascript:void(0)" class="no">a link</a>
</body>
ASKER
Dear rafistern
Thanks a lot, it works just great!
Cheers Jörgen
Thanks a lot, it works just great!
Cheers Jörgen
ASKER
I'm sorry...
I didn't explained clearly enough. I need inside the SAME page to use the Link Style defined in the Style Sheet. And on the same page I need ALSO the "normal" link style.
One Page - two sort of link styles.
Sorry for the inconvenience.
Cheers
Jörgen