CSS border-right property
Description of property definition and use
Border-right short-write properties set all the properties of the left box to a declaration.
The properties that can be set are (in order): border-right-width, border-right-style, and border-right-color.
If one of the above values is missing, it does not matter, for example, border-right:solid #ff0000; is allowed.
Default: | not specified |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object object.style.borderRight="3px solid blue" |
Browser support
Border-right properties are supported by all major browsers.
Note I E7 and earlier versions do not support "inherited" values. I E8 needs to be defined! D OCTYPE。 IE9 supports inheritance.
Property Values
Value | Description |
---|---|
border-right-width | Specifies the width of the right box |
border-right-style | Specify the style of the right box |
border-right-color | Specify the color of the right box |
inherit | The value of the border-right property is specified and should be inherited from the parent element |
Related articles
CSS tutorial: CSS Border