Attachement de l'image de fond CSS
- Page précédente Répétition de l'image de fond CSS
- Page suivante Propriétés de fond abrégées CSS
background-attachment CSS
background-attachment
L'attribut définit si l'image de fond doit être déroulée ou fixe (ne suivra pas le reste de la page) :
Exemple
Définir l'image de fond pour être fixe :
body { background-image: url("tree.png"); background-repeat: no-repeat; background-position: right top; background-attachment: fixed; }
Exemple
Définir l'image de fond pour suivre le reste de la page :
body { background-image: url("tree.png"); background-repeat: no-repeat; background-position: right top; background-attachment: scroll; }
- Page précédente Répétition de l'image de fond CSS
- Page suivante Propriétés de fond abrégées CSS