Faire scroller le background

Bonjour,

J'utilise godaddy pour la création d'un site et je n'arrive pas à faire en sorte que le background scroll en même temps que le contenu du site.

J'ai pourtant inséré "background-attachment: scroll;" dans le code, mais rien n'y fait....

Avez vous une idée?

Merci par avance.

Cordialement,

Benjamin

3 réponses

  • Votes
  • Date
  • Date décroissante
  1. Bonjour,

    Je ne suis pas spécialiste du web, mais l'idée ici est bien de faire défiler le fond de la page en même temps que le contenu? (ascenseur)
    1. Exactement !

      mais actuellement il n'y a que le contenu qui "scroll"....

      As tu une idée foda ?
  2. j'ai essayé ça:

    body {
    background-color:#3f4146;
    background-image: url(images/788_texture_bg.png);
    background-attachment: scroll;
    background-position: left top;

    background-repeat: repeat;
    color:#505050;
    font-family:Arial, Helvetica, FreeSans, sans-serif;
    font-size:15px;
    margin:0;
    padding:0;
    }

    font { letter-spacing:normal; }

    .sf_outer_wrapper {
    background-image: url(images/788_top_bg.png);
    background-attachment: scroll;
    background-position: center top;
    background-repeat: no-repeat;
    }

    .sf_content:after,
    .sf_region1:after,
    .sf_outer_wrapper:after {
    content:".";
    display:block;
    font-size:0;
    height:0;
    clear:both;
    visibility:hidden;
    }

    .sf_wrapper {
    margin:0 auto;
    width:980px;
    }
    1. En effet, c'est étrange.. Par défaut donc sans assigner d'attributs au background-attachment, l'image devrait suivre le mouvement.

      On parle bien du background de body?
      1. je pense .... lol