CSS border-right-width Property


The border-right-width property sets the width of an element's right border.The border-right-width property in CSS is used to set the width of right-border of an element. It is mandatory to declare the border-style or the border-right-style property before the border-right-width property.

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

Syntax:

border-right-width: medium|thin|thick|length|initial|inherit; 

Property Values:
medium: It is the default value. It is used to specify a medium size of right-border.

border-right-width: medium|thin|thick|length|initial|inherit; 

Example -