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
Configuration: Windows Vista
Firefox 3.5.5

6 réponses

  1. 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
    1. 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>
      
      1. Tu as oublier quelque chose regarde:
        <body background=url"image/image-noel.jpg"
        background-color:black;
        background-attachment:fixed;
        background-repeat:no-repeat;>
        </body>