Tutorials

CSS 'border-right-width' Property Explained

  • Published
  • 1 min read
  • CSS
  • HTML
  • Web Design
CSS 'border-right-width' Property Explained
In this article
  1. CSS 'border-right-width' Property Examples
  2. Browser Support For 'border-right-width' Property
  3. CSS Syntax of the 'border-right-width' Property
  4. Usage of the 'border-right-width' Property
  5. Property Values of the 'border-right-width' Property

Corrected . The browser-support table was rebuilt from MDN browser-compat-data (unprefixed support, desktop browsers), checked 3 October 2026. Editorial approval is still pending.

The CSS 'border-right-width' property sets the width of an element's right border. This property enables precise control over how thick or thin the right border appears, allowing for detailed customization of the element's outline or frame.

CSS 'border-right-width' Property Examples

See the Pen CSS 'border-right-width' Property by Webzstore (@webzstore) on CodePen.

The 'border-right-width' property offers significant flexibility in designing borders. It enables the integration of detailed graphical elements into the borders of web elements and enhances the visual appeal and thematic consistency of web designs.

Browser Support For 'border-right-width' Property

Unprefixed support for the border-right-width property (selected supported implementation, desktop browsers)
BrowserVersionReleased
Chrome1Dec 2008
Edge12Jul 2015
Firefox1Nov 2004
Safari1Jun 2003
Opera3.5Nov 1998

Source: MDN browser-compat-data 8.1.4, checked 3 October 2026. Prefixed support and implementations that were later removed are not counted, and some browsers list partial support or extra values. See the MDN reference for border-right-width for the full compatibility details, including mobile browsers.

CSS Syntax of the 'border-right-width' Property

border-right-width: thin | medium | thick | length | initial | inherit;

Usage of the 'border-right-width' Property

Use 'border-right-width' to define or adjust the thickness of an element's right border. This property is particularly useful for emphasizing or distinguishing the right side of an element within a layout or for designs that require specific border widths to convey visual hierarchy or draw attention to particular areas.

Property Values of the 'border-right-width' Property

  • Thin: Specifies a thin right border.
  • Medium: Sets the right border to a medium thickness, the default value.
  • Thick: Makes the right border thick.
  • Length: Allows for an exact measurement (e.g., px, em) to define the border width.
  • Initial: Resets the 'border-right-width' to its default value.
  • Inherit: Inherits the 'border-right-width' from the parent element.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.