Propriété CSS border-right
Exemple
Définissez le style de la bordure droite pour différents éléments :
h1 {
border-right: 5px solid red;
}
h2 {
border-right: 4px dotted blue;
}
div {
border-right: double;
}
Définition et utilisation
La border-right
propriété est une propriété abrégée pour (dans l'ordre suivant) :
- border-right-width
- border-right-style (obligatoire)
- border-right-color
Si border-right-color est omis, la couleur appliquée sera la couleur du texte.
Valeur par défaut: | moyen aucune couleur |
---|---|
Hérité: | non |
Animable : | oui, voir propriétés individuelles . En savoir plus sur l'animation |
Version: | CSS1 |
Syntaxe JavaScript : | objet .style.borderRight="5px pointillé 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-right | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Syntaxe CSS
border-right: border-width border-style border-color|initial|inherit;
Valeurs de propriété
Value | Description |
---|---|
border-right-width | Required. Specifies the width of the right border. Default value is "medium" |
border-right-style | Required. Specifies the style of the right border. Default value is "none" |
border-right-color | Optional. Specifies the color of the right border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Pages connexes
Tutoriel CSS : Bordure CSS
Référence HTML DOM : propriété borderRight