Bonjour la Communauté,
Je recherche la façon d'empêcher "l'encadrement" d'une image qui contient un lien vers une page. J'ai essayé sans résultat :
-text decoration :none;
style:text decoration :none;
Je vous mets mon code html et css afin que vous ayez une vision d'ensemble :
Code html :
Et maintenant la css :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <body> <div id="ind"> <div id="head"></div> <div id="corps"><img src="tare/images/Shabkar - Borj.jpg" alt="Shabkar" /></div> <div id="foot"><a href="trek/passion.html"><img src="tare/images/fra.png"/></a><br><a href="trek2/trek_passion.html"><img src="tare/images/angl.png"/></a></div> </div> </body>
J'espère que vous verrez ce que je ne vois pas depuis hier.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53 body { margin: 30px 0 0 0; padding: 0; background-color: #504E53; line-height: 1.6em; text-align: justify; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; } /** Page index */ #ind{ position: absolute; left: 50%; top: 50%; margin-top: -300px; /* moitié de la hauteur de l'image */ margin-left: -450px; /* moitié de la largeur de l'image */ } #head{ width: 900px; height: 150px; margin: 0px auto; background-image:url(tare/images/borj-biraman-maison2-haut.png); } #corps{ width: 900px; height: 345px; margin: 0px auto; background-image:url(tare/images/borj-biraman-maison2-corps.png); } #foot{ width: 900px; height: 108px; margin: 0px auto; background-image:url(tare/images/borj-biraman-maison2-bas.png); } #corps img{ margin-left:390px; } #foot img{ margin-left:100px; margin-top:15px; }
Merci
Partager