border-right-color - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right-color

Description

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

The following table summarizes the border-right Property.

Item Value
Default value: The value of the color property
Applies to:All elements
Inherited: No
Animatable: Yes.

Syntax

The syntax of the property is as follows:

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

Property Values

The following table describes the values of this property.

Value Description
color Set the color of the right border.
transparent transparent border.
initial Sets this property to its default value.
inherit takes the value of its parent element border-right-color property.

The example below shows the border-right-color property.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head>
  <title>Example of CSS border-right-color property</title>
  <style type="text/css">
    p {<!--   w  w  w.  ja v a  2  s  .  com-->
      border-style: solid;
      border-right-color: #ff0000;
    }
    </style>
 </head>
 <body>
  <p>This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </p>
 </body>
</html>

Related Tutorials