border-bottom-width
Specifies the width of the bottom border.
Sample Code
div.test { border-bottom-width: thin;}
div.test1 { border-bottom-width: medium;}
div.test2 { border-bottom-width: 10px;}
Available Values
| Value | Description |
|---|---|
| Number | Specifies the border width using units such as『px』. |
| thin | Specifies using the keyword『thin』(narrow). Most browsers display this as 1px, though it may vary slightly. |
| medium | Specifies using the keyword『medium』. Most browsers display this as 3px, though it may vary slightly. This is the default value when no『border-bottom-width』is specified. |
| thick | Specifies using the keyword『thick』. Most browsers display this as 5px, though it may vary slightly. |
Browser Preview
※ The sample below uses『border-style: solid』.
<div style="border-bottom-width: 10px; border-style: solid; height: 100px; padding: 10px; font-weight: bold;">A div element with height 100px and padding 10px.</div>
Browser Compatibility
Desktop
Supported in all versions
8 ○
7 ○
6 ○
2 and below ×Mobile
Android Browser
2.2+ ○
1 and below ×Same support as desktop version
Same support as desktop version
※ Version information is based on MDN.
If you find any errors or copyright issues, please contact us.