border-right-width

Description

border-right-width sets the width for the right border.

ItemValue
Initial value medium
Inherited No.
Version CSS1
JavaScript syntax object.style.borderRightWidth="thick"
Applies to All elements.

Syntax and Property Values


border-right-width: non-negative length | 
                    medium | /*from  w  w  w .j a  v  a 2 s . com*/
                    thick | 
                    thin | 
                    inherit 

The property values are listed in the following table.

Value Description
thin thin border
medium medium border. default
thick thick border
length set the thickness
inherit inherit the border width from the parent element

Example


<!DOCTYPE HTML>
<html>
    <head>
        <style>
        h2 {<!--from   ww w .  j  a va2  s. co  m-->
         border-right-width: 2px;
         border-right-style: double;
        }
        </style>
    </head>
<body>
  <h2>This is the title</h2>
</body>
</html>

Click to view the demo

The code above generates the following result.

border-right-width




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference