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