I have an image map and I made a media query so that the image changes at a specific width. How can I write code so that I can change the coords for the new image?
HTML
<img src="../images/journey-final-01.jpg" alt="journey" usemap="#journeymap">
<map id="map_ID" name="journeymap">
<area target="" alt="flag1" title="Milestone 1" href="" coords="1356,644,1482,809" shape="rect">
<area target="" alt="flag2" title="Milestone 2" href="" coords="808,595,900,710" shape="rect">
<area target="" alt="flag3" title="Milestone 3" href="" coords="1361,320,1431,405" shape="rect">
<area target="" alt="flag4" title="Milestone 4" href="" coords="1124,161,1190,248" shape="rect">
<area target="" alt="cap" title="DDA" href="" coords="1173,110,1359,5" shape="rect">
</map>
CSS
body img{
width: 100vw;
height: 100vh;
}
@media only screen and (max-width: 600px) {
body img {
content: url("../images/journey-mobile-01.jpg");
}
}