CSS border-right Property Reference

The CSS border-right property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

CSS border-right Property Reference

The CSS border-right property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

border-right overview

The CSS border-right property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

border-right formal syntax
FieldValue
Formal syntax<line-width> || <line-style> || <color>
Initial valueborder-right-width, border-right-style, border-right-color
Applies toallElements
InheritedNo
Percentagesno
Computed valueborder-right-width, border-right-style, border-right-color
Animation typeborder-right-width, border-right-style, border-right-color
Mediavisual
Specification groupCSS Backgrounds and Borders
StatusStandard

Practical examples

These declarations demonstrate valid ways to set border-right. The initial and inherit global keywords remain available even when a property-specific value is preferable.

border-right live example
CSS .reset-example { border-right: initial; } .inherit-example { border-right: inherit; } @supports (border-right: initial) { .supported { border-right: initial; } }

Description

The CSS border-right property is a standard property in CSS Backgrounds and Borders. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: border-right
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies