Le site que je suis a une image à côté d'un texte dans un lien hypertexte.Je ne sais pas comment supprimer le soulignement de l'image dans css
L'image est soulignée, de même que le texte. Je voudrais que l'image ne soit pas soulignée.
a {
-moz-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
-webkit-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
-ms-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
border-bottom: dotted 1px;
color: #0066cc;
text-decoration: none;
}
a:hover {
border-bottom-color: transparent !important;
color: #0066cc !important;
text-decoration: none;
}
img {
outline: none !important;
text-decoration: none !important;
border-bottom-color: transparent !important;
border-bottom: none;
outline-width: 0px;
}
<a href="domain.com"><img src="pic.gif">check this out></a>
Il ne fonctionne pas. Le soulignement disparaît si vous passez la souris sur l'image, mais je veux qu'elle ne soit jamais là.
Alors pourquoi écrivez 'border-bottom: dotted 1px;'? – SLaks
Je veux qu'il soit souligné lorsque vous ne le survolez pas. – coolmusic