Bonjour a tous
J'ai dans un dossier 'accessoire':
une image
chariot.png
accessoire.php
1 2 3
| <div id="access" >
<img id="panier" src="chariot.png" alt="panier" />
</div> |
accessoire.css
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
| @charset "utf-8";
/* CSS Document */
#access{
/*position: relative;*/
margin-top:10px;
margin-left:0px:
float:left;
width:100px;
height:500px;
border:0.5px solid blue;
}
#panier{
display:block;
position: relative;
margin:auto;
margin-top:10px;
height: 80px;
width: 80px;
background-image: url("chariot.png");
background-repeat:no-repeat;
/* border:0.5px solid blue;*/
} |
Avec le
1 2
| background-image: url("chariot.png");
background-repeat:no-repeat; |
L'image s'affiche
mais si je ne l'ai pas, le
<img id="panier" src="chariot.png" alt="panier" />
ne trouve pas l'image. Je ne vois pas mon erreur
Partager