Solved

[CSS] A.hover

Posted on 2000-03-21
2
204 Views
Last Modified: 2010-04-09
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
Comment
Question by:ESI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
chteril earned 100 total points
ID: 2639675
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
 
LVL 3

Author Comment

by:ESI
ID: 2639718
Thanks 4 your quick answer
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question