I have the following html code below:
<a class="tooltips" href="#"><strong>!</strong><span>Ingresse o máximo de informações possíveis para uma entrega acertiva</span></a>
With the following CSS
codes:
a.tooltips {
position: relative;
display: inline-block;
vertical-align: middle;
font-size: 14px;
color: #fff;
margin-left: 5px;
background: #E7AF19;
padding: 1px 10px;
text-align: center;
border-radius: 50%;
}
a.tooltips span:after {
content: '';
position: absolute;
top: 100%;
left: 50%;
margin-left: -8px;
width: 0;
height: 0;
border-top: 8px solid #E7AF19;
border-right: 8px solid transparent;
border-left: 8px solid transparent;
}
Putting together the two codes, it forms a small circle to show information to the user, where it should be displayed in hover
, but it is not working. I think I'm missing some function in javascript
or jQuery
so that it is displayed, but I do not know how to do it so that in hover
, the text contained within span
is displayed.
Example: