Name
border-right-width
Values:
thin
| medium
| thick
| <length> | inherit
Initial value:
medium
Applies to:
All elements.
Inherited:
No.
Computed value:
Absolute length; 0
if the style of the border is none
or hidden
.
Description:
This sets the width for the right border of an element, which will take effect only if the border’s style is something other than none
. If the border style is none
, then the border width is effectively reset to 0
. Negative length values are not permitted.
Examples:
img {border-right-width: 30px;} h3 {border-right-width: 1em;}
Supported by:
Firefox, Internet Explorer, Opera, Safari.
Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.