How to adaptively position the markers on the map?

There are cards on which markers are positioned at different screens, now this is achieved sleduyushim Javascript code:
jQuery(".saratov").css("left",148/1140*jQuery(".map").width());
jQuery(".saratov").css("top",480/674.723*jQuery(".map").height());


If you refresh the page, everything works as it should, but there are situations when the user changed the resolution without a page refresh and then everything floats here so

Please tell me how we can implement the positioning of the markers, to avoid this bug?
July 9th 19 at 10:31
0 answer

Find more questions by tags Adaptive design