Defines the properties for the right border for the element.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 4.0+ | 6.0+ | 1.0+ | 4.0+ | 1.0+ |
---|
Usage
[color] [style] [width]
Values
* | Specify a border-right value not on this list. |
inherit | Inherit the value from the parent element. |
#ffffff | border-right-color: Border color placeholder. e.g. #ffffff = white |
none | border-right-style: No border. |
dotted | border-right-style: Dotted line. |
dashed | border-right-style: Dashed line. |
solid | border-right-style: Solid line. |
double | border-right-style: Double line. |
groove | border-right-style: Grooved line. |
ridge | border-right-style: Ridged line. |
inset | border-right-style: Inset line. |
outset | border-right-style: Outset line. |
hidden | border-right-style: Hidden border. |
thin | border-right-width: Thin border. |
medium | border-right-width: Medium border. |
thick | border-right-width: Thick border. |
Example
To specify a thick, red, dashed right border, use the following syntax: .myborderrightclass {border-right: thick red dashed;}
.
Remarks
Use the border-right
property as a shortcut to typing out all of the individual border-right properties separately. You can specify any valid value for a border-right-
property as part of border-right
.
Availability
W3C CSS2