by turnipla · 6y ago · 0 comments
HTML images maps are not responsive. Just use SVG, it works without any scripts and it resizes with the image.
If you use <foreignObject> you can also use a fully responsive <picture> tag
The absolutely ridiculous part of this is that they're using JS to create additional DIVs on top of the image.
Why use the map at all?
Edit: May 20th 2020: the day I learned HN users are retarded