CSS border-bottom-width property
Example
Set the bottom border width:
p
{
border-style:
solid
;
border-bottom-width:
15
px
;
}
Try it »
Property definition and usage
The border-bottom-width property sets the width of an element's bottom border.
NoteYou must declare the border-style property before setting the border-bottom-width property. An element must have a border before you can change its width.
| Default value: | medium |
|---|---|
| Inherited: | no |
| Version: | CSS1 |
| JavaScript syntax: | object object.style.borderBottomWidth="thick" |
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| border-bottom-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Attribute values
| Value | Description |
|---|---|
| thin | Defines a thin bottom border |
| medium | Default value. Defines a medium bottom border |
| thick | Defines a thick bottom border |
| length | Allows you to customize the width of the bottom border |
| inherit | Specifies that the border width should be inherited from the parent element |
Related Articles
CSS Tutorial: CSS Borders
CSS Reference Manual: border-bottom property