Style borderRightWidth Property

Clash Royale CLAN TAG#URR8PPP
<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
Style borderRightWidth Property
❮ Style Object
Example
Change the width of the right border of a <div> element to 10px:
document.getElementById("myDiv").style.borderRightWidth = "10px";Try it Yourself »
Definition and Usage
The borderRightWidth property sets or returns the width of the right border of
an element.
Browser Support
| Property | |||||
|---|---|---|---|---|---|
| borderRightWidth | Yes | Yes | Yes | Yes | Yes |
Syntax
Return the borderRightWidth property:
object.style.borderRightWidth
Set the borderRightWidth property:
object.style.borderRightWidth = "thin|medium|thick|length|initial|inherit"
Property Values
| Value | Description |
|---|---|
| thin | Defines a thin border |
| medium | Defines a medium border. This is default |
| thick | Defines a thick border |
| length | The width of the border in length units |
| initial | Sets this property to its default value. Read about initial |
| inherit | Inherits this property from its parent element. Read about inherit |
<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]-->
Technical Details
| Default Value: | medium |
|---|---|
| Return Value: | A String, representing the width of an element's right border |
| CSS Version | CSS1 |
More Examples
Example
Change the width of the right border of a <div> element to thin:
document.getElementById("myDiv").style.borderRightWidth = "thin";
Try it Yourself »
Example
Return the width of the right border of a <div> element:
alert(document.getElementById("myDiv").style.borderRightWidth);
Try it Yourself »
Related Pages
CSS tutorial: CSS Border
CSS reference: border-right-width property
HTML DOM reference: border property
❮ Style Object