border-right

Introduction

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

Examples

Syntax

.br-0 {
  border-right: thick double red;
}
.br-1 {
  border-right: thin dotted blue;
}

.br-2 {
  border-right: 10px dashed orange;
}

Values

This property is a shorthand for the following CSS properties:

Formal definition

Initial valuesolid
Applies toall elements
Inheritedno
Animatableno

Formal syntax

<line-width> || <line-style> || <color>
where
<line-width> = <length> | thin | medium | thick
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

Difference from Web

Global values are not supported. (inherit, initial, revert, unset, etc)

Default style value is solid.

Compatibility

Loading...

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.