Background html

Rebonjour ;)

Voilà je voulais savoir si vous saviez comment faire pour que le background reste fixe comme ici https://myspace.com/temperamentos401

car j'ai beau chercher à droite à gauche je trouve pas de tuto pour me l'expliquer.

voilà mon myspace https://myspace.com/thean0rmal

<style title="fwl-tasha">
div.fwl-tasha {position: absolute;top: 0;left: 50%;margin-left: -413px;width: 826px;height:550px; background-color:000}
body {background-color:000;overflow-x:hidden; margin-top:550px; background-attachment: scroll; background-repeat:repeat-y;background-position:center top;
background-image:url(http://nsa15.casimages.com/img/2010/04/06/100406110240219748.jpg);  }
table table table {background-color:transparent; width:100%; max-width:435px; }
table, tr, td, li, p, div, a, p,font,.text ,.btext ,.redtext, .redbtext, .btext {font-family: arial; color:fff; font-size:8pt; font-weight:normal; line-height:7pt} 


J'espère avoir donner le code en entier concernant le back

7 réponses

  • Votes
  • Date
  • Date décroissante
  1. Bin si tu veux que le fond de la page reste fixe, pose ce code dans la propriété css body genre

    body {

    background-image:url(http://nsa15.casimages.com/img/2010/04/06/100406110240219748.jpg);

    background-repeat : no-repeat ;

    background-attachment:fixed;

    }
    1. rajoute ça ou il faut ça devrait marcher

      background-attachment:fixed;
      1. Tu peux aussi afficher le code source de la page web qui t'interresse pour piquer des bouts de code (sous mozilla : "affichage-->Code source de la page"
        1. je rajoute ou exactement, pas envie de faire tout planter

          background-attachment:fixed;
          1. ok super merci, par contre en haut de mon background j'ai la balise <img voyante :(
            1. normalement tu n'as pas besoin d'utiliser de balise <img> puisque l'url de ton image est déja définie dans le css. Ta page est accessible depuis le net ? on peut y aller ?