css:background-color

Un article de Polydoc.

Sommaire

[modifier] Description

Cette propriété définit la couleur d'arrière-plan d'un élément. Sa valeur peut être entrée soit en toutes lettres (pour certaines couleurs courantes), soit en notation hexadécimale (exemple : #12c3ff), soit en notation RGB (exemple : rgb(15, 255, 100)).

[modifier] Valeurs

[modifier] Exemples

.fond_noir {
background-color: black;
}
 
.fond_bleu {
background-color: #0000ff;
}
 
.fond_vert {
background-color: rgb(0, 255, 0);
}

[modifier] Voir aussi

[modifier] Liens internes