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

HTML DOM Style borderRightWidth property

Style borderRightWidth property

Style Object Reference The Style object


Definition and Usage

The borderRightWidth property sets or returns the width of the right border of an element.

Syntax

Set the borderRightWidth property:

Object.style.borderRightWidth="thin|medium|thick|

length

|inherit"

Return the borderRightWidth property:

Object.style.borderRightWidth

Value Description
thin Defines a thin border.
medium Default. Defines a medium border.
thick Defines a thick border.
length Defines the width of the border using units such as px and cm.
inherit The width of the right border is inherited from the parent element.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the borderRightWidth property.

**Note:** IE7 and earlier versions do not support the "inherit" value. IE8 supports "inherit" only if a !DOCTYPE is specified. IE9 supports "inherit".


Example

Example

Change the width of the right border:

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

Try it »


Style Object Reference The Style object