The border-right-width property specifies the width of the right border of an element. Note that in many cases the shorthand CSS property border-width is more convenient and preferable.

  • Initial valuemedium
  • Applies toAll elements
  • InheritedNo
  • MediaVisual
  • Computed valueAbsolute length; '0' if the border style is 'none' or 'hidden'
  • AnimatableYes
  • CSS VersionCSS1, CSS2, CSS3
  • JavaScript
Formal syntax: <line-width> 

border-right-width: thin;
border-right-width: medium;
border-right-width: thick;
border-right-width: 2px;
<line-width> = <length> | thin | medium | thick
  • thinLess than the default width.
  • mediumDefault value.
  • thickGreater than the default width.
  • <length>Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).
  • inherit
.class {
   border-right-width: thick;

Click the button below to experiment with this property.

Give it a Try!


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.