What is the CSS border-bottom-width property?
The border-bottom-width property in
To use the
border-bottom-widthproperty, we must first declare theborder-styleorborder-bottom-stylebecause the color is only changed if we have a border.
Syntax
border-bottom-width: medium|thin|thick|length|initial|inherit;
Property values
-
thin: Specifies that the bottom border is thin. -
thick: Specifies that the bottom border is thick. -
length: Defines the thickness of the bottom border. -
medium: This is the default value;mediumspecifies that the bottom border is medium. -
initial: Sets the value to its default value. -
inherit: Inherits property from its parent value.
Code
Below is the basic border-bottom-width property.