BODY background-color MARCHE PAS

Salut

Je veux que la couleur de mon backround de ma page soit gris mais ça ne change pas alors que j ai bien spécifié ceci ! c est toujours blanc !

<style type="text/css">
<!--
body {
background-attachment:fixed;
background-position:center;
background-color:#656565;
background-image: url(barre.jpg);
background-repeat: repeat-y;}
-->
</style>

...

<body bgcolor='#656565'>

...

OU EST LE PB ? :(

MERCI
Configuration: Windows XP
Firefox 2.0.0.3

2 réponses

  1. Contributeur
    Salut REY,
    Pourquoi tu a mis à la fois une couleur ET une image dans le background ?
    Le style se trouve dans ta page ou dans une feuille de style séparée ?
    Si tu ne veux que la couleur, alors tu peux virer ça:
    <style type="text/css">
    <!--
    body {
    background-attachment:fixed;
    background-position:center;
    background-color:#656565;
    background-image: url(barre.jpg);
    background-repeat: repeat-y;}
    -->
    </style>

    Tiens nous au courant
    1. je ve le code de image en fon d écran svp
      1. Depuis le temps j'espère que tu as du trouver ta réponse, mais pour ceux qui en auraient besoin :
        il suffit de mettre le background-color après le background ! je pense que c'est la réponse à la question.

        Comme cela:

        <style type="text/css">

        body {
        background-attachment:fixed;
        background-position:center;

        background-image: url(barre.jpg);
        background-color:#656565;


        background-repeat: repeat-y;}

        </style>

        ...

        <body>

        ...

        Et voila !