I have an image of a plane, and I'm using tooltips to show information from different places on the plane, the drawback is that the tooltips do not hold the position on the map and they pass this
How could you keep the tooltips on the image as the image resizes?
This is the HTML
<img class="responsive center" src="casa.jpg" max-width="1200">
<div class="btn btn-primary tooltip tool">
<i class="fa fa-info-circle"></i>
<div class="top">
<h3>TERRAZAS, VENTANAS Y BALCONES</h3>
<p>La salida a estos espacios debe estar asegurada constantemente con una cerradura, especialmente en pisos altos.</p>
<p>Instala mallas en la parte exterior del balcón o terraza. </p>
<p>Aleja mesas y sillas que le permitan al niño trepar y acercarse a estos espacios.</p>
<i></i>
</div>
</div>
And this CSS
.tooltip {
background: #fff0;
color: #555;
cursor: pointer; font-family: "Gill Sans", Impact, sans-serif;
font-size: 20px;
padding: 15px 20px;
display: block;
text-align: center;
-webkit-transform: translateZ(0);
-webkit-font-smoothing: antialiased;
left: 40px position: absolute;
text-align: left;
height:auto;
z-index:999;
}