Is it possible to add a css border to a HTML Imagemap?
Asked
Active
Viewed 6,728 times
1
-
See: https://stackoverflow.com/a/64711402/2397550 – Mr. Hugo Nov 06 '20 at 13:52
2 Answers
3
I doubt there's a cross browser CSS solution, but this jQuery plugin can do what you're after:
jQuery MapHilight
It can show the border without hover if you specify alwaysOn:true
, as seen on the first example there (the black part is done using the plugin).

Kobi
- 135,331
- 41
- 252
- 292
1
2 option :
1 - wrap your image with div and give him border .
2 - build your image map with divs + css background images
like in this example :
http://www.noobcube.com/tutorials/html-css/css-image-maps-a-beginners-guide-/

Haim Evgi
- 123,187
- 45
- 217
- 223