Cette propriété définit la couleur de fond d'un élément.
background-color | |
---|---|
Valeur | Couleur transparent |
Valeur par défaut | transparent |
Domaine d'application | Tous les éléments |
Héritage | non |
Media | visuel |
Valeur possible |
Action | Exemple |
---|---|---|
transparent | L'élément concernées est transparent. | h1 {background-color: transparent} |
Mot-clé | Dénomination de la couleur par un mot-clé. | p {background-color: green} |
rgb(Rouge, Vert, Bleu) | Valeur de la couleur sous forme d'un triplet RVB. | th {background-color: rgb(255, 0, 255)} |
#RougeVertBleu | Valeur de la couleur sous le standard HTML. | pre {background-color: #FFCC33} |
Windows | Macintosh | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NE4 | NE6 | NE7 | IE5 | IE55 | IE6 | OP5 | OP6 | OP7 | NE4 | NE6 | NE7 | IE4 | IE5 |