Prolbème css

Fermé
agazzi Messages postés 123 Date d'inscription lundi 20 juillet 2009 Statut Membre Dernière intervention 8 mars 2011 - 2 sept. 2009 à 11:38
agazzi Messages postés 123 Date d'inscription lundi 20 juillet 2009 Statut Membre Dernière intervention 8 mars 2011 - 2 sept. 2009 à 18:55
Bonjour,

J'ai un souci, je veux que mon background-image soit fixe pendant le scrolling de la page, pour cela, j'ai mis:

body {
margin: 0;
padding: 0;
font: 12px Tahoma, Arial, Sans-serif;


background-image: #000 url(images/page_bg.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: top center;
color: #d9d7d6;

scrollbar-3dlight-color:#494949;
scrollbar-arrow-color:#7b7b7b;
scrollbar-darkshadow-color:#292929;
scrollbar-face-color:#000;
scrollbar-highlight-color:#606060;
scrollbar-shadow-color:#464646;
scrollbar-track-color:#353535;

}

L'ennuie, c'est que mon background attachment ne fonctionne pas, et j'ai beau chercher, je ne vois pas ou est le problème, merci de votre aide pour ce problème

Cordialement

1 réponse

M@dien Messages postés 437 Date d'inscription mercredi 29 juillet 2009 Statut Membre Dernière intervention 23 septembre 2010 74
2 sept. 2009 à 14:07
Bonjour,

C'est peut-être du à l'erreur suivante: background-image: #000 url(images/page_bg.jpg);
Le mieux est d'utiliser la propriété background, ça évite les erreurs =)
background: #000 url(images/page_bg.jpg) fixed no-repeat top center; 
0
agazzi Messages postés 123 Date d'inscription lundi 20 juillet 2009 Statut Membre Dernière intervention 8 mars 2011 2
2 sept. 2009 à 18:55
Merci, je vais esseyer
0