![]() |
VOOZH | about |
The border-bottom-width property in CSS is used to specify the width (thickness) of the bottom border of an element. It controls how thick or thin the bottom border appears.
Syntax:
border-bottom-width: length | thin | medium | thick | initial | inherit;Property Values: The border-bottom-width property values are listed below:
| Value | Description |
|---|---|
| thin | Sets a thin border width. |
| medium | Sets a medium border width (default). |
| thick | Sets a thick border width. |
| length | Sets the border width using a specific length value. Does not accept negative values. |
Example: Here, we demonstrates the border-bottom-width property using different values (thin, medium, thick, and 20px). Each styled <div> shows a solid green bottom border with specified widths, illustrating how each value affects border thickness.