I know about HTML image maps
<map name="beachmap">
<area href="/" shape="poly" coords="17,51,42,35,66,51,66,89,17,89"
alt="Beach hut" title="Beach hut - where you get changed">
...
The units used, AFAIK, are pixels. I am in a situation where I need to create an image map, but on an image of variable width. Ideally, I'd like to create an image map that uses em, or percentages for area definitions instead of pixels. Is that possible? What are my options?
To be honest, I'm need to have image map functionality on a background which has background-sizing:cover
set, so that's even more difficult. But if I could use relative units, or find an easy solution to have an image map for a variable-width image, it would be a great start already!