Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <style> .tooltip { position: relative; affichage: inline-block; border-bottom: 1px dotted black; curseur: pointeur; } .tooltiptext { visibilité: caché; largeur: 120px; couleur-de-fond: noir; couleur: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; haut: -5px; gauche: 110%; } .tooltiptext::after { contenu: ""; position: absolute; haut: 50%; droite: 100%; margin-top: -5px; border-width: 5px; style-de-bordure: solide; couleur-de-bordure: transparent noir transparent transparent; } .tooltip:hover .tooltiptext { visibilité: visible; } </style> <body style="text-align:center;"> <h2>Tooltip aligné à droite avec flèche à gauche</h2> <div class="tooltip">Hover over me <span class="tooltiptext">Texte de l'info-bulle</span> </div> </body> </html>