Style borderBottomWidth Property
- Previous Page borderBottomStyle
- Next Page borderCollapse
- Go Up One Level HTML DOM Style Object
Definition and Usage
borderBottomWidth
Sets or returns the width of the element's bottom border.
See Also:
CSS Tutorial:CSS Border
CSS Reference Manual:border-bottom-width Attribute
HTML DOM Reference Manual:border Property
Example
Example 1
Change the width of the bottom border of the <div> element to 10px:
document.getElementById("myDiv").style.borderBottomWidth = "10px";
Example 2
Change the width of the bottom border of the <div> element to thin:
document.getElementById("myDiv").style.borderBottomWidth = "thin";
Example 3
Returns the width of the bottom border of the <div> element:
alert(document.getElementById("myDiv").style.borderBottomWidth);
Syntax
Return borderBottomWidth Property:
object.style.borderBottomWidth
Set borderBottomWidth Property:
object.style.borderBottomWidth = "thin|medium|thick|length|initial|inherit"
Attribute Value
Value | Description |
---|---|
thin | Defines thin borders. |
medium | Defines medium borders. Default. |
thick | Defines thick borders. |
length | Border width measured in length. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical Details
Default Value: | medium |
---|---|
Return Value: | A string representing the width of the element's bottom border. |
CSS Version: | CSS1 |
Browser Support
The numbers in the table indicate the browser version that first fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
- Previous Page borderBottomStyle
- Next Page borderCollapse
- Go Up One Level HTML DOM Style Object