Style borderBottom property
The Style object
Definition and Usage
The borderBottom property sets or returns three separate bottom border properties in shorthand form.
With this property, you can set/return:
- border-bottom-width
- border-bottom-style
- border-bottom-color
Syntax
Set the borderBottom property:
Object.style.borderBottom="
width style color
"
Return the borderBottom property:
Object.style.borderBottom
**Tip:** The borderBottom property has no default value.
| Parameters | Description |
|---|---|
| width | Sets the width of the bottom border. |
| style | Sets the style of the bottom border. |
| color | Sets the color of the bottom border. |
Browser support





All major browsers support the borderBottom property.
Example
Example
Change the width, style, and color of the bottom border:
This is some text.
Try it »
The Style object