Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

[CSS] A.hover

G'day all expoerts in there.

Is it possible to have a different hovering style in the same page ?

When we define several A.hover CSS styles, it seems it's the last one that prevail over the previous one(s)...

Any solutions ?
10x in advance 4 your help and your precious time
0
ESI
Asked:
ESI
1 Solution
 
chterilCommented:
try this:

<html>
<head>
<style>
a.test1:hover{

  color:green;
}
a.test2:hover{
   color:black;
}
a.test3:hover{
   color:red;
}
a.test4:hover{
   color:blue;
}
</style>

</head>
<body>
<a class='test1' href=''>Test1</a>
<br><a class='test2' href=''>Test2</a>
<br><a class='test3' href=''>Test3</a>
<br><a class='test4' href=''>Test4</a>
</body>
</html>
0
 
ESIAuthor Commented:
Thanks 4 your quick answer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now