How do I make an html < area /> visible at all times, not just on focus?
Seems it should be as simple as this:
html:
<img src="image.png" width="100" height="100" usemap="#Map" />
<map name="Map" id="Map">
<area shape="circle" coords="50,50,50" href="#" alt="circle" />
</map>
css:
area {border: 1px solid red}
No matter what I do, it seems I cannot affect the styling of an area at all, it genuinely appears immune to css. Any ideas? Also, any other examples of un-style-able tags?
jQuery Plugin, MapHilight:
You might find the jQuery plugin MapHilight (dead link!!!) to be of interest here.
New link: https://github.com/kemayo/maphilight
New demo: https://home.ctw.utwente.nl/slootenvanf/wp-content/uploads/examples/archive/jquery_plugins/imagemap/
HTML/CSS Alternative
I would suggest using a div, with absolute links within. The reason being, this will degrade very nicely and show all of the options as a list of links. Image maps won’t be so friendly. Furthermore, this alternative will deliver the same results, with cleaner and more modern practices.
—