I want to add a tooltip on hover over an icon, I want to it a simple way, I'm adding the title attribute to get the tooltip
html:
<div class="container">
<div class="block">
</div>
<div class="row">
<div title="hovered text"data-placement="top" class="tooltiptext">
<span class="tooltips"onmouseover="hover(this)">
Hola hover</span>
</div>
</div>
</div>
however I havent found a way yet to:
even when I have value as "top" for data-placement, it still renders below the text. Any idea what would be the fix for the above 2 issues? Thanks in advance.
You can use the w3schools example, which is written only in HTML and CSS.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.