The border-top-right-radius property

The border-top-right-radius property creates a rounding for a top-right corner of a border and background. The property value is any size units. Default value: 0.

Syntax

cssselector {
  border-top-right-radius: value;
}

Example

We set the rounding to 10px for the top-right corner:

html<div id="elem"></div>
css#elem {
  border-top-right-radius: 10px;
  border: 1px solid black;
  width: 300px;
  height: 100px;
}

Результат:

See also