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: 130px; couleur-de-fond: noir; couleur: #ffffff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; haut: 100%; gauche: 65%; margin-left: -65px; } .tooltip:hover .tooltiptext { visibilité: visible; } </style> <body> <h2>Tooltip aligné en bas</h2> <p>Déplacez la souris sur le texte ci-dessous :</p> <div class="tooltip">Hover over me <span class="tooltiptext">Certain texte d'info-bulle</span> </div> </body> </html>