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





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