Search within TutorialsPark

CSS border-right Property

A shorthand to set the border of the right edge

Definition and Notes.

1. The CSS border-right property is a shorthand to set the width, color and style of the right border of the element.

2. If the border-style is not specified then nothing would appear on screen.


CSS border-right property. internetexplorer safari firefox opera chrome

View in Splitscreen»


Note- Even if one of the values are missing from the declaration, the border will be displayed

Property Values

Value Description
border-right-width To set the width of the right border.
border-right-style To set the border-style for the right border.
border-right-color To set the color of the right border.
inherit The values for border-right are inherited from the parent element.


Specs Value
Name border-right
Value <border-width> || <border-style> || color
Initial Value not defined for shorthand properties
Applies to All Element.
Javascript syntax" 5px ridge #fa4b2a "
Inherited No
Computed Value See Individual Properties
Browser Support internetexplorer safari firefox opera chrome

Related Examples.