border-bottom-right-radius
Definition
The border-bottom-right-radius
property is a CSS property that defines the radius of the bottom-right corner of an element. It is used to round the corners of the element's border.
Examples
Length value
.element {
border-bottom-right-radius: 10px;
}
Percentage value
.element {
border-bottom-right-radius: 50%;
}
Global values
.element {
border-bottom-right-radius: inherit;
border-bottom-right-radius: initial;
border-bottom-right-radius: unset;
}
Values
Value | Description |
---|---|
<length> | Specifies the radius of the border using a fixed size. |
<percentage> | Specifies the radius of the border using a percentage of the size of the element. |
inherit | The element inherits the border-bottom-right-radius value from its parent element. |
initial | Sets the border-bottom-right-radius to its default value. |
unset | The element's border-bottom-right-radius is set to the value specified in the user agent's style sheet, if any. If there is none, it will be the default value. |
Best Practices
- Use a reasonable radius value for the rounded corners to avoid creating corners that are too sharp or too rounded.
- Avoid using too many different border radius values on a single page as it can be visually overwhelming.
- Make sure the border radius matches the overall design and layout of your site.
- Use the
border-bottom-right-radius
property in conjunction with theborder-style
andborder-width
properties to fully define the border of an element. - Consider the layout and hierarchy of your content when deciding which corners to round. For example, you may want to round the top corners of a header element but not the bottom corners.
Browser Compatibility
Chrome | Firefox | Safari | Internet Explorer | Microsoft Edge | Opera |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |