Bonjour tout le monde,
Tout est dans le titre j'ai utilisé du code css que j'ai trouvé sur le net pour qu'une image agrandie appairaisse dans une div au survol du curseur de la souris sur des images en miniatures. Le problème c'est que sur IE l'image dépasse la div conteneur mais sur firefox lorsque l'image apparaît elle est coupé par la div. J'ai essayé de mettre un overflow hidden mais rien y fait voici le code
le css :
html généré :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 .photo {position:relative;} .photo span {display:none;} .photo:hover {border:0;} /* bug IE6 */ .photo:hover span {display:block;position:absolute;top:10px;right:10px} .content{ padding: 20px 10px; text-align:center; overflow:visible; }
Merci bien.
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 <div class="content"> <h2>Photos de la mosquée</h2> <hr/> <a href="diaporama.php?dir=photos/&nr=1" class="photo"> <img src="photos/P1020485.JPG" width="50px" height="50px" border="1" /> <span><img src="photos/P1020485.JPG" width="200px" height="200px" border="1"/></span> </a> <a href="diaporama.php?dir=photos/&nr=2" class="photo"> <img src="photos/P1020489.JPG" width="50px" height="50px" border="1" /> <span><img src="photos/P1020489.JPG" width="200px" height="200px" border="1"/></span> </a> <a href="diaporama.php?dir=photos/&nr=3" class="photo"> <img src="photos/P1020490.JPG" width="50px" height="50px" border="1" /> <span><img src="photos/P1020490.JPG" width="200px" height="200px" border="1"/></span> </a> <a href="diaporama.php?dir=photos/&nr=4" class="photo"> <img src="photos/P1020491.JPG" width="50px" height="50px" border="1" /> <span><img src="photos/P1020491.JPG" width="200px" height="200px" border="1"/></span> </a> <a href="diaporama.php?dir=photos/&nr=5" class="photo"> <img src="photos/P1020493.JPG" width="50px" height="50px" border="1" /> <span><img src="photos/P1020493.JPG" width="200px" height="200px" border="1"/></span> </a> </div>






Répondre avec citation

de mettre le code HTML généré.
Avant toutes questions : 
Partager