Arriere plan html
Résolu
Bonjour,
Je n'arrive pas a insérer un arrière plan fixe
voila mon code
<body background="image/image-noel.jpg"
background-color:black;
background-attachment:fixed;
background-repeat:no-repeat;>
</body>
Qui pourrait m'expliquer mon erreur
Je n'arrive pas a insérer un arrière plan fixe
voila mon code
<body background="image/image-noel.jpg"
background-color:black;
background-attachment:fixed;
background-repeat:no-repeat;>
</body>
Qui pourrait m'expliquer mon erreur
Configuration: Windows Vista Firefox 3.5.5
6 réponses
-
L'image n'apparait pas?
-
si mais elle ne reste pas fixe et est répété
-
Tu as oublier quelque chose regarde:
<body background=url"image/image-noel.jpg"
background-color:black;
background-attachment:fixed;
background-repeat:no-repeat;>
</body> -
bug d'édition
-
Euh... du code CSS ça se met dans une feuille de style, pas entre des balises html.
Par exemple, à placer entre les balises <head></head> :<style type="text/CSS"> body { background-image:url(image/image-noel.jpg); background-color:black; background-attachment:fixed; background-repeat:no-repeat; } </style> -
en effet
merci a vous
j'ai même amélioré
<style type="text/CSS">
body {
background-image:url(image/image-noel.jpg);
background-color:black;
background-attachment:fixed;
background-repeat:repeat-x;
background-position:center center;
}
</style>
sujet résolu