Fond dans CSS
Résolu
Peter2
-
math 2000 Messages postés 2833 Statut Membre -
math 2000 Messages postés 2833 Statut Membre -
Bonjour,
alors voilà, je suis en train de programmer un site, et sur ma feuille de style CSS, je veux afficher une image de fond, et ça marche pas.
Voilà mon code CSS :
body {
color:black;
background-color:black;
background-image:url(fond.gif);
width: 760px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
}
alors voilà, je suis en train de programmer un site, et sur ma feuille de style CSS, je veux afficher une image de fond, et ça marche pas.
Voilà mon code CSS :
body {
color:black;
background-color:black;
background-image:url(fond.gif);
width: 760px;
margin: auto;
margin-top: 20px;
margin-bottom: 20px;
}
A voir également:
- Fond dans CSS
- Comment mettre une vidéo en fond d'écran - Guide
- Fond de page word - Guide
- Trame de fond word - Guide
- Google fond noir - Guide
- Fond d'écran carousel - Forum Xiaomi
10 réponses
et avec ça ça marche ?
background:url("fond.gif");
sans le image sinon ça serait bien la page en ligne
background:url("fond.gif");
sans le image sinon ça serait bien la page en ligne
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
il y a un bug dans ton code tu met color à un background essaie juste ça
body {
background:url(fond.gif);
width: 760px;
margin-top: 20px;
margin-bottom: 20px;
}
body {
background:url(fond.gif);
width: 760px;
margin-top: 20px;
margin-bottom: 20px;
}
Essaye avec :
background: black url("fond.gif");
Ou :
background: transparent url("fond.gif");
Sinon regarde ici -> https://www.zonecss.fr/proprietes-css/background-css.html
background: black url("fond.gif");
Ou :
background: transparent url("fond.gif");
Sinon regarde ici -> https://www.zonecss.fr/proprietes-css/background-css.html
c'était le css en double qui faisait interference soit tu le met dans la page soit dans le fichier css met en double ça gene
http://bormat2.free.fr/math%202000/prob_css/accueil.html
http://bormat2.free.fr/math%202000/prob_css/accueil.html