border-width
Définition de la balise border-width qui permet de specifier la taille de la bordure.
border-width permet de specifier la taile de la bordure, on lui met une valeur numerique, ou une taille prédéfinie
thin | medium | thick
ex: Pour un bord fin :
h1 {
border-width: thin;
}
border-width: thin;
}
ex: Pour un bord de 10px
h2 {
border-width: 10px;
}
border-width: 10px;
}
On peut mettre les 4 valeurs des 4 coté dans l'ordre : haut, droite, bas puis gauche :
ex, pour un bord de 1px, et de 10px à droite :
h3 {
border-width: 1px 10px 1px 1px;
}
border-width: 1px 10px 1px 1px;
}
On peut associer border-width avec un coté spécifique :
border-top-width, border-bottom-width, border-right-width, border-left-width.
border-top-width, border-bottom-width, border-right-width, border-left-width.
ex: un bord en dessous du titre h5 de 3px :
h5 {
border-bottom-width: 3px;
}
border-bottom-width: 3px;
}



Flux Rss












