Propriété CSS border-bottom-color
Exemple
Définissez une couleur pour la bordure inférieure :
div {border-bottom-color: coral;}
Plus d'exemples "Essayez-le vous-même" ci-dessous.
Définition et utilisation
La border-bottom-color
propriété définit la couleur de la bordure inférieure d'un élément.
Remarque : Déclarez toujours la propriété border-style ou
border-bottom-style avant la border-bottom-color
propriété. Un élément doit avoir une bordure avant que vous puissiez changer la couleur.
Valeur par défaut: | La couleur actuelle de l'élément |
---|---|
Hérité: | non |
Animable : | Oui. En savoir plus sur l'animation |
Version: | CSS1 |
Syntaxe JavaScript : | objet .style.borderBottomColor="bleu" |
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
border-bottom-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Syntaxe CSS
border-bottom-color: color|transparent|initial|inherit;
Valeurs de propriété
Value | Description | Play it |
---|---|---|
color | Specifies the color of the bottom border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | |
transparent | Specifies that the border color should be transparent | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Plus d'exemples
Exemple
Définissez une couleur pour la bordure inférieure avec une valeur HEX :
div {border-bottom-color: #92a8d1;}
Exemple
Définissez une couleur pour la bordure inférieure avec une valeur RVB :
div {border-bottom-color: rgb(201, 76, 76);}
Exemple
Définissez une couleur pour la bordure inférieure avec une valeur RGBA :
div {border-bottom-color: rgba(201, 76, 76, 0.3);}
Exemple
Définissez une couleur pour la bordure inférieure avec une valeur HSL :
div {border-bottom-color: hsl(89, 43%, 51%);}
Exemple
Définissez une couleur pour la bordure inférieure avec une valeur HSLA :
div {border-bottom-color: hsla(89, 43%, 51%, 0.3);}
Exemple
Définissez une bordure inférieure transparente :
div {border-bottom-color: transparent;}
Pages connexes
Tutoriel CSS : Bordure CSS
Référence CSS : propriété border-bottom
Référence HTML DOM : propriété borderBottomColor