CSS border-right-colorProperty


Example

Sets the color of the right border:

p { border-style:solid; border-right-color:#ff0000 }

Try it Yourself »

Property definition and usage instructions

The border-right-color property sets the color of an element's right border.

NoteAlways declare the border-style property before the border-color property. An element must have a border before you can change its color.

Default Value: not specified
Inherited: no
version: CSS1
JavaScript Syntax: object object.style.borderRightColor="blue"


Browser Support

The numbers in the table indicate the first browser version number that supports the property.

Property
border-right 1.0 4.0 1.0 1.0 3.5

Property value

Value Description
color_name Sets the border color to a color name (for example, red).
hex_number Sets the border color to a hexadecimal value (for example, #ff0000).
rgb_number Sets the border color to an rgb code (for example, rgb(255,0,0)).
transparent Default value. The border color is transparent.
inherit Specifies that the border color should be inherited from the parent element.


Related Articles

CSS Tutorial:CSS Border

CSS Reference Manual:border-right property

other extensions