border-right-color

Description

border-right-color property sets the color for the right border.

ItemValue
Initial value The value of color for the element.
Inherited No.
Version CSS1
JavaScript syntax object.style.borderRightColor="blue"
Applies to All elements.

Syntax and Property Values


border-right-color: color | transparent | inherit 

where color is a valid CSS color value.

The property values are listed in the following table.

Value Description
color Set the border color.
transparent Set the border color to transparent. Default value
inherit Inherit the border color from the parent element

Example


<!DOCTYPE HTML>
<html>
    <head>
    <style type='text/css'>
    div {<!-- w  ww  .j a v a  2s  .c o m-->
        border-right: 3px dashed darkkhaki;
        border-right-color:red;
    }
    </style>
    </head>
    <body>
        <div>java2s.com</div>
    </body>
</html>

Click to view the demo

The code above generates the following result.

border-right-color




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference