CSS Property: border-right
The width, style, and color of the right border of a box.
A shorthand property that combines border-right-width
, border-right-style
, and border-right-color
.
Possible Values
A space-separated list, containing up to three values representing border-right-width
, border-right-style
, and border-right-color
. Any excluded values will default to their initial value.
Value | Description | Example |
---|---|---|
[width] (equivalent of border-right-width value) |
|
2px |
[style] (equivalent of border-right-style value) |
|
solid |
[color] (equivalent of border-right-color value) |
|
red |
[width] [style] |
|
2px solid |
[width] [color] |
|
2px red |
[style] [color] |
|
solid red |
[width] [style] [color] |
|
2px solid red |
inherit | ||
initial | ||
unset |
Example
#fish { border-right: thick dotted black; }