The border-right-width property sets the thickness of an element’s physical right border. You can also set it through the shorthands border-right or border-width.
Use a length such as 4px, or the keywords thin, medium, and thick. The initial value is medium. A visible border-right-style is still required or nothing draws. It is not inherited. Unlike border-inline-end-width, it does not flip in RTL layouts.
Baseline for lengths and keywords.
Not deprecated. thin, medium, thick, and length values are widely available. The newer hairline keyword is limited — prefer lengths or the classic keywords for study and production.
border-right-width is a browser CSS property for the box model. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
border-right-width
Supported in all modern browsers and Internet Explorer for lengths and thin, medium, and thick. The newer hairline keyword is not part of these numbers.
100%Lengths and keywords
Google ChromeAll versions
Full support
Mozilla FirefoxAll versions
Full support
Apple SafariAll versions
Full support
Microsoft EdgeAll versions
Full support
OperaAll versions
Full support
Samsung InternetAll versions
Full support
Internet ExplorerAll versions
Full support
border-right-widthWidely supported
Bottom line: Safe everywhere for px, em, rem, and thin / medium / thick. Keyword pixel sizes can vary slightly by browser. Prefer lengths when you need an exact match. It is not a runtime API.
Remember
Key Takeaways
Role: set how thick the physical right border is.
Initial value:medium. Not inherited.
Needs a style: without a visible style, any width stays invisible.
Physical: always the right side. Use border-inline-end-width for logical trailing edges.
One line:border-right-width sets the right edge thickness — after that edge already has a visible style.
Frequently Asked Questions
It sets the thickness of the physical right border only. Style and color come from other properties or from a shorthand such as border-right.
The initial value is medium. The exact pixel size of thin, medium, and thick is chosen by the browser.
Width alone is not enough. You also need a visible border-right-style such as solid. Color defaults to currentColor if you omit it.
Yes. Any non-negative length works, such as 4px or 0.25em. Negative lengths are invalid.
border-right-width always sets the physical right edge. border-inline-end-width follows writing direction, so it can move to the left in RTL layouts.
It is Baseline and widely available in all modern browsers and Internet Explorer for lengths and thin, medium, and thick. It is a browser CSS property, not a Node.js feature.