Prev Demo
Right Tooltip
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> .tooltip { position: relative; display: inline-block; border-bottom: 2px solid black; } .tooltip .tooltiptext { visibility: hidden; width: 120px; background-color: silver; color: black; text-align: center; border-radius: 10px; padding: 5px 0; /* Position the tooltip */ position: absolute; z-index: 1; top: -5px; left: 100%; } .tooltip:hover .tooltiptext { visibility: visible; } </style> </head> <body> <h2>Right Tooltip</h2> <p>Place the mouse the on the text to get right 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