Adding hover effects for links in image map (area)

user4194677 picture user4194677 · Oct 29, 2014 · Viewed 34.9k times · Source

I'm only a beginner in html and I would like to put hover effects for my image map. I have searched for lots of solutions but I only come up with solutions using script which I don't understand.

How does this script work? I tried using

area:hover {
border: 1px solid white;
}

But it does not work.

Answer

lu-bhz picture lu-bhz · Oct 29, 2014

What you're trying to do is not very simple, you will have to combine javascript and css or jquery to give the effect you want.

It's because the area element doesn't accept hover directly, unfortunately...

But the good news is that it was answered before here:

How to apply Hovering on html area tag?

Visible Area tag?