border right color

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

CSS border-right-color Property


Set the color of the right border:

    border-style: solid;
    border-right-color: #ff0000


Definition and Usage

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

Note: Always declare the border-style property before the border-right-color property. An element must have borders before you can change the color.


CSS Syntax

border-right-color: color|transparent|initial|inherit;

Property Values

Value Description  
color Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is black  
transparent Specifies that the border color should be transparent