Style Object
The borderRight property sets or returns up to three separate border-right properties, in a shorthand form.
With this property, you can set/return:
Set the borderRight property:
Return the borderRight property:
Tip: There is no default value for the borderRight property.
| Parameter | 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 |
![]()
The borderRight property is supported in all major browsers.
Change the width, style, and color of the right border:
Style Object
Your message has been sent to W3Schools.