border right

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

CSS border-right Property

Example

Set the style of the right border:

{
    border-style: solid;
    border-right: thick double #ff0000;

}

Definition and Usage

The border-right shorthand property sets all the right border properties in one declaration.

The properties that can be set, are (in order): border-right-width, border-right-style, and border-right-color.

It does not matter if one of the values above are missing, e.g. border-right:solid #ff0000; is allowed.

CSS Syntax

border-right: border-width border-style border-color|initial|inherit;

Property Values

Value Description
border-right-width Specifies the width of the right border
border-right-style Specifies the style of the right border
border-right-color Specifies the color of the right border