Prev Demo
Toptooltip
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: green; color: black; text-align: center; border-radius: 10px; position: absolute; z-index: 1; bottom: 100%; left: 50%; margin-left: -60px; } .tooltip:hover .tooltiptext { visibility: visible; } </style> </head> <body style="text-align:center;"> <h2>Top Tooltip</h2> <p>Place the mouse on the text to get top tooltip</p> <div class="tooltip"> Hover over me <span class="tooltiptext">TechFunda</span> </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output