I have a div that contains a map for a viable city. I need to put some pins or markers in it, but my problem is that the contacts change location based on the width of the window.
How to fix this, no matter what browser size is used, are contacts located in one place on the map ?
<div class="MapContainer"> <a href="http://www.google.dk" style="position: absolute; top: 240px; left: 650px;"> <img class="pin" src="~/Content/1453392082_map_pin_fill.png" data-val-text="Bageri" /> </a> <a href="http://www.google.dk" style="position: absolute; top: 258px; left: 670px;"> <img class="pin" src="~/Content/1453392082_map_pin_fill.png" data-val-text="Rådhus" /> </a> <a href="http://www.google.dk" style="position: absolute; top: 258px; left: 670px;"> <img class="pin" src="~/Content/1453392082_map_pin_fill.png" data-val-text="Nærbrugs" /> </a> <a href="http://www.google.dk" style="position: absolute; top: 258px; left: 670px;"> <img class="pin" src="~/Content/1453392082_map_pin_fill.png" data-val-text="Ejendomshandel" /> </a> <a href="http://www.google.dk" style="position: absolute; top: 258px; left: 670px;"> <img class="pin" src="~/Content/1453392082_map_pin_fill.png" data-val-text="Avis" /> </a> </div>
.MapContainer { background-image: url('../Content/bastumhuhej2.png'); position: relative; background-size: contain; height: 100vh; background-repeat: no-repeat; }
user4403536
source share