Problème background-image css

worldcars Messages postés 329 Statut Membre -  
worldcars Messages postés 329 Statut Membre -
Bonjour,
j'ai un problème avec du css mon image ne s'affiche pas avec le code background-image: url(....) alors qu'avec background: url(....); il marche.
Mais pourquoi.

voila mon code :

#fond
{
background-image:url('xbox/img/news.png')no-repeat;
width:640px;
height:400px;
}
A voir également:

2 réponses

benj
 
bonjour,

background-image n'accepte pas no-repeat il te faut utiliser background-repeat pour ça si tu utilise background-image

sinon utilise simplement background et ça fonctionnera.
0
worldcars Messages postés 329 Statut Membre 74
 
Merci c'est super gentil à toi (faut quand même le savoir) lol
0