From W3C Wiki
< CSS‎ | Properties
Revision as of 17:58, 19 July 2011 by Plehegar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The border-right-width property sets the width of the right border of a box.


Values [[thin | medium | thick] | <length>] | inherit
Initial value medium
Applies to all elements
Inherited No


  • thin
    A thin border.

  • medium
    A medium border.

  • thick
    A thick border.

  • <length>

  • inherit
    Takes the same specified value as the property for the element's parent.


Example A


 h1 {
   border-top-width: 1px;
   border-right-width: 0px;
   border-bottom-width: 1px;
   border-left-width: 0px;
   border-style: solid;


    <h1>CSS border property example</h1>

Csslist2 border-width.png

CSS Reference

The CSS specification defines the border-right-width property in 8.5.1 Border width.

See also