Propriété CSS border-bottom-width
Exemple
Définissez une largeur pour la bordure inférieure :
div {border-bottom-width: thin;}
Plus d'exemples "Essayez-le vous-même" ci-dessous.
Définition et utilisation
La border-bottom-width
propriété définit la largeur 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-width
propriété. Un élément doit avoir des bordures avant que vous puissiez modifier la largeur.
Valeur par défaut: | moyen |
---|---|
Hérité: | non |
Animable : | Oui. En savoir plus sur l'animation |
Version: | CSS1 |
Syntaxe JavaScript : | objet .style.borderBottomWidth="5px" |
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-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Syntaxe CSS
border-bottom-width: medium|thin|thick|length|initial|inherit;
Valeurs de propriété
Value | Description | Play it |
---|---|---|
medium | Specifies a medium bottom border. This is default | |
thin | Specifies a thin bottom border | |
thick | Specifies a thick bottom border | |
length | Allows you to define the thickness of the bottom border. Read about length units | |
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 la largeur de la bordure inférieure sur moyenne :
div {border-bottom-width: medium;}
Exemple
Définissez la largeur de la bordure inférieure sur épaisse :
div {border-bottom-width: thick;}
Exemple
Définissez la largeur de la bordure inférieure sur 1 px :
div {border-bottom-width: 1px;}
Exemple
Définissez la largeur de la bordure inférieure sur 15 pixels :
div {border-bottom-width: 15px;}
Pages connexes
Tutoriel CSS : Bordure CSS
Référence CSS : propriété border-bottom
Référence HTML DOM : propriété borderBottomWidth