Lien sur icône, html

Fermé
LD - 2 nov. 2016 à 17:22
 LD - 2 nov. 2016 à 17:44
Bonjour,

Pouvez-vous m'expliquer pourquoi mon image n'est pas cliquable et ne renvoie pas vers un lien ? (layer 2)

<html>

<div id="Layer1" style="position:absolute; left:0px; top:0px; width:0px; height:0px; z-index:1"><img name="xxx" img src="signaturemail_alexandre_01.png" width="2050" height="680" alt=""></div>
<div id="Layer2" style="position:absolute; left :54px; top:536px; width:0px; height:0px; z-index:1" <a href="http://facebook.com" rel="nofollow noopener noreferrer" target="_blank"></a><img name="xxx" img src="facebookbleuvert.png" width="87" height="87"

</div>
</map>
<body>
</body>
</html>

Merci

1 réponse

greg160 Messages postés 621 Date d'inscription lundi 28 juin 2010 Statut Membre Dernière intervention 21 septembre 2017 188
2 nov. 2016 à 17:32
Actuellement, ton image n'est pas contenu dans le lien :
Ta structure actuelle :

<FICHIER HTML>
<DIV LAYER1>
<Image "xxx" signaturemail>
</DIV LAYER1>
<DIV LAYER 2>
<LIEN>
<IMAGE>
</MAP>
<Corps>
</corps>
</FICHIER HTML>

Normalement au layer 2, tu devrais avoir ceci :

<DIV LAYER2>
<LIEN> /* Ton image est contenue dans le lien */
<IMAGE>
</LIEN>
</DIV LAYER2>
essaye ceci :

<a href="http://facebook.com" rel="nofollow noopener noreferrer" target="_blank"><img name="xxx" type="img/png" src="facebookbleuvert.png" width="87" height="87"></a>

0
Merci, je m'étais mal exprimée sur la démarche.
un ami m'a apporté une réponse, 'display block' qui fonctionne
Mais je débute :)

<!DOCTYPE html>


<head>
<meta charset="utf-8"/>
<title>
</title>
</head>
<body style=" width: 500px; height: 500px; background: url('alexandre.png') no-repeat;">
<div style=" width: 20px; height: 20px;margin-top: 130px;margin-left: 6px;">

<a href="http://www.facebook.com" rel="nofollow noopener noreferrer" target="_blank" style="display:block; width:100%; height:100%;">
</a>
</div>

</body>
</html>

Merci pour votre réponse,
Bonne soirée
0