Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Styling area tags [duplicate]

Tags:

css

imagemap

area

I have a pair of image-maps on which I want their areas to high-light when the mouse hovers over them.

I am using jquery to detect the mouseover and assigning a css class. The assignment works and I can confirm the new class name. But, the area does not high-light.

My best guess is perhaps area is not a recognised HTML tag. Can anyone suggest how I could get this to work?

Thanks

like image 413
sisko Avatar asked Apr 14 '26 10:04

sisko


1 Answers

It seems like the html area tag is not a visual element that you can style. But, this other question: Visible Area tag? points to a very useful jQuery plugin you could use: http://davidlynch.org/js/maphilight/docs/

like image 200
Arturo Molina Avatar answered Apr 19 '26 15:04

Arturo Molina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!