CSS border-right-widthProperty
Example
Set the width of the right border:
p
{
border-style:solid;
border-right-width:15px;
}
Try it Yourself »
Property definition and usage instructions
The border-right-width property sets the width of an element's right border.
NoteAlways declare the border-style property before the border-right-width property. An element must have a border before you can change its width.
| Default value: | medium |
|---|---|
| Inheritance: | no |
| version: | CSS1 |
| JavaScript Syntax: | object.style.borderRightWidth="thick" |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| border-right-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property value
| Value | Description |
|---|---|
| thin | Defines a thin right border. |
| medium | Default value. Defines a medium right border. |
| thick | Defines a thick right border. |
| length | Allows you to customize the width of the right border. |
| inherit | Specifies that the border width should be inherited from the parent element. |
Related Articles
CSS Tutorial:CSS Border
CSS Reference Manual:border-right property
other extensions