Cette propriété définit la méthode de répétition de l'image de fond d'un élément afin de créer une mosaïque.
background-repeat | |
---|---|
Valeur | repeat repeat-x repeat-y no-repeat |
Valeur par défaut | repeat |
Domaine d'application | Tous les éléments |
Héritage | non |
Media | visuel |
Valeur possible |
Action | Exemple |
---|---|---|
repeat | L'image de fond est répétée horizontalement et verticalement. | h1 {background-repeat: repeat} |
repeat-x | L'image de fond est répétée horizontalement. | p {background-repeat: repeat-x} |
repeat-y | L'image de fond est répétée verticalement. | th {background-repeat: repeat-y} |
no-repeat | L'image de fond n'est pas répétée. | pre {background-repeat: no-repeat} |
Windows | Macintosh | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NE4 | NE6 | NE7 | IE5 | IE55 | IE6 | OP5 | OP6 | OP7 | NE4 | NE6 | NE7 | IE4 | IE5 |