CSS2 » Properties » border-right-width

Version: Level 1

Compability: IE4+  N4+

Syntax:
border-right-width : thin | medium | thick | length
length
The length value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters cm
ems em
inches in
millimeters mm
picas pc
pixels px
points pt
thin | medium | thick
The keyword values of thin, medium, or thick can be used to set the width of the border line. The exact thickness of the border created by using these keyword values will be determined by your computer/browser combination.

The border-right-width property sets the width of the right border. This property is not inherited.

Examples

Code:
body { border-right-width: thick; }
body { border-right-width: 0.25in; }
body { border-right-width: 5mm; }
Language(s): CSS2
Code:
p.bordr
{
border-bottom-color: red; border-bottom-style: double; border-bottom-width: 15px;
border-left-color: yellow; border-left-style: double; border-left-width: 15px;
border-right-color: blue; border-right-style: double; border-right-width: 15px;
border-top-color: green; border-top-style: double; border-top-width: 15px;
}
...
<p class="bordr">
<b>DevGuru is great!</b>
</p>
Output:

DevGuru is great!

Language(s): CSS2

See Also: