CSS border-right-color (Set/Change Color of Right Border)

The CSS border-right-color property is used when we need to change the color of right border of an element. For example:

HTML with CSS Code
<!DOCTYPE html>
<html>
<head>
   <style>
      p {border: 6px solid darkgray; padding: 10px; border-right-color: crimson;}
   </style>
</head>
<body>

   <p>This is a para.</p>
   
</body>
</html>
Output

This is a para.

CSS border-right-color Syntax

The syntax of border-right-color property in CSS, is:

border-right-color: x;

The value of x should be any of the following:

CSS Online Test


« Previous Tutorial Next Tutorial »