BODY background-color MARCHE PAS

REY -  
 lisea -
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. txiki Messages postés 6514 Date d'inscription   Statut Contributeur Dernière intervention   610
     
    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
    0
  2. kabis
     
    je ve le code de image en fon d écran svp
    0
    1. lisea
       
      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 !
      0