1. Home
  2. Computing & Technology
  3. Web Design / HTML

border-right-width

By Jennifer Kyrnin, About.com

border-right-width Description:

The border-right-width property defines the width of the right border of the element.

border-right-width in CSS Versions:

border-right-width Syntax:

border-right-width: thin | medium | thick | <length> | inherit

  • thin, medium, or thick
    The length of these keywords is user-agent dependent, but thin <= medium <= thick.
  • length
    A specific length (include unit of measure).
  • inherit
    The element should have the same border-right-width setting as the parent.

border-right-width Initial Value:

medium

border-right-width Applies To:

All elements.

border-right-width Inheritance:

This property is not inherited.

border-right-width Browser Support:

border-right-width Examples:

standard border-right-width

<p style="border-right-width : 2em;">
This paragraph has a 2 em right border.
</p>

border-right-width Special Notes:

  • Negative values are permitted.
  • If you don't set the border-style, the border will not display.

More border-right-width Information:

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. How does the vertical-align style property work?
  3. Playing with the Cursor
  4. CSS
  5. Style Properties
  6. CSS Style Property: border-right-width

©2008 About.com, a part of The New York Times Company.

All rights reserved.