docs.rodeo

MDN Web Docs mirror

border-bottom-right-radius

{{CSSRef}} 

The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.

{{EmbedInteractiveExample("pages/css/border-bottom-right-radius.html")}} 

The rounding can be a circle or an ellipse, or if one of the value is 0 no rounding is done and the corner is square.

border-bottom-right-radius.png

A background, being an image or a color, is clipped at the border, even a rounded one; the exact location of the clipping is defined by the value of the {{cssxref("background-clip")}}  property.

[!NOTE] If the value of this property is not set in a {{cssxref("border-radius")}}  shorthand property that is applied to the element after the border-bottom-right-radius CSS property, the value of this property is then reset to its initial value by the shorthand property.

Syntax

/* The corner is a circle */
/* border-bottom-right-radius: radius */
border-bottom-right-radius: 3px;

/* Percentage values */
border-bottom-right-radius: 20%; /* corner of a circle if box is a square or else corner of a rectangle */
border-bottom-right-radius: 20% 20%; /* same as above */ /* 20% of horizontal(width) and vertical(height) */
border-bottom-right-radius: 20% 10%; /* 20% of horizontal(width) and 10% of vertical(height) */

/*The corner is an ellipse */
/* border-bottom-right-radius: horizontal vertical */
border-bottom-right-radius: 0.5em 1em;

/* Global values */
border-bottom-right-radius: inherit;
border-bottom-right-radius: initial;
border-bottom-right-radius: revert;
border-bottom-right-radius: revert-layer;
border-bottom-right-radius: unset;

With one value:

With two values:

Values

Formal definition

{{CSSInfo}} 

Formal syntax

{{csssyntax}} 

Examples

Arc of a circle

A single <length> value produces an arc of a circle.

<div></div>
div {
  border-bottom-right-radius: 40px;
  background-color: lightgreen;
  border: solid 1px black;
  width: 100px;
  height: 100px;
}

{{EmbedLiveSample("Arc_of_a_circle")}} 

Arc of an ellipse

Two different <length> values produce an arc of an ellipse.

<div></div>
div {
  border-bottom-right-radius: 40px 20px;
  background-color: lightgreen;
  border: solid 1px black;
  width: 100px;
  height: 100px;
}

{{EmbedLiveSample("Arc_of_an_ellipse")}} 

Square element with percentage radius

A square element with a single <percentage> value produces an arc of a circle.

<div></div>
div {
  border-bottom-right-radius: 40%;
  background-color: lightgreen;
  border: solid 1px black;
  width: 100px;
  height: 100px;
}

{{EmbedLiveSample("Square_element_with_percentage_radius")}} 

Non-square element with percentage radius

A non-square element with a single <percentage> value produces an arc of an ellipse.

<div></div>
div {
  border-bottom-right-radius: 40%;
  background-color: lightgreen;
  border: solid 1px black;
  width: 200px;
  height: 100px;
}

{{EmbedLiveSample("Non-square_element_with_percentage_radius")}} 

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN