border-right

The border-right shorthand CSS property sets all the properties of an element's right border.

Example

Initial value as each of the properties of the shorthand:border-right-width: mediumborder-right-style: noneborder-right-color: currentcolor
Applies to all elements. It also applies to ::first-letter.

Syntax

  
border-right: 8px solid red;
  

Values

See border-right-width.
See border-right-style.
See border-right-color.

Browser support

border-right11215.59.21

We use cookies to improve your experience. Learn more in our Privacy policy.

×