CSS border-right-width Property
CSS border-right-width
property sets the border right width of an element.
Usages
The following table outline the usages and version history of this property.
Default value: | medium |
Applies to: | All elements |
Inherited: | No |
Version: | CSS1 |
JavaScript Syntax: | object.style.borderRightWidth = "2px" |
Syntax
Here is a syntax for the CSS border-right-width
property
border-right-width: medium | thin |thick | length | initial | inherit;
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
medium | Default. Set a medium border |
thin | Set a thin border |
thick | Set a thick border |
length | Set length value in px, pt, cm, em, etc that define border thickness |
initial | Sets default value of this property |
inherit | Inherits this property from its parent element |
Examples
The example below shows to sets border right width.
.border-1 {
border-right-width: medium;
}
.border-2 {
border-right-width: thin;
}
.border-3 {
border-right-width: thick;
}
.border-4 {
border-right-width: 5px;
}
Browser Compatibility
- Google Chrome 1+
- Mozilla Firefox 1+
- Internet Explorer 4+
- Opera 3.5+
- Safari 1+
Note: Here details of browser compatibility with version number may be this is bug and not supported. But recommended to always use latest Web browser.