Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style borderRight property

Style borderRight property

Style Object Reference 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:

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the borderRight property.


Example

Example

Change the width, style, and color of the right border:

Runoob Tutorial(runoob.com)
This is some text.

Try it »


Style Object Reference The Style object