I am developing an interactive map with <div>
instead of the <map>
tag but I have a problem when it works with responsive. That is to say, when I shrink the explorer the capsules are out of phase and I do not know how I could organize them again. The example can be found here link
The html code is:
<div class="map-container"><img src="imagenes/mapa.png" width="1000" height="1294" alt="Mapa"/></div>
<div class="tooltip" data-tooltip-content="#administracion" style="top: -307px; left: 674px;">A</div>
<div class="tooltip" data-tooltip-content="#canchas" style="top: -230px; left: 604px;">A</div>
<div class="tooltip" data-tooltip-content="#toboganes" style="top: -210px; left: 615px;">A</div>
<div class="tooltip_templates" style="display: none;">
<span id="administracion">
<img src="imagenes/mapa/administracion.jpg"/><br><br>
<strong>Administración</strong>
</span>
</div>
I'm using tooltipster to make the tooltip, and the tooltip code is:
$(document).ready(function() {
$('.tooltip').tooltipster({
theme: ['tooltipster-noir', 'tooltipster-noir-customized'],
side: ['top', 'bottom']
});
});
I need to make the "tooltip" adapt to the responsive. Any idea how to do this? Or the same effect in a different way? Thank you. Greetings