CSS border-bottom-right-radius Property
Last Updated :
23 Aug, 2024
The border-bottom-right-radius property in CSS is used to define the radius of the right bottom corner of the border of a given element. It is used to round the corner on the right side of the bottom border.
Syntax:
border-bottom-right-radius:length|[value%]|initial|inherit;
Property Value: The border-bottom-right-radius property values are listed below:
- length: It is used to specify the radius of the right bottom corner in fixed length in px, em etc. The default value is 0.
- percentage %: It is used to specify the radius of the right bottom corner of the border in percentage.
- initial: It is used to set the border-bottom-right-radius property to its default value.
- inherit: This property is inherited from its parent element.
Example: In this example we are using above-explained property.
HTML
<!DOCTYPE html>
<html>
<head>
<title>
border-bottom-right-radius property
</title>
<style>
#length {
border-color: green;
border-style: solid;
border-bottom-right-radius: 20px;
}
#percentage {
border-color: green;
border-style: solid;
border-bottom-right-radius: 59%;
}
#inherit {
border-color: green;
border-style: solid;
border-bottom-right-radius: inherit;
}
</style>
</head>
<body style="text-align:center">
<h1>GeeksforGeeks</h1>
<h3>border-bottom-right-radius property</h3>
<div id="length">
border-bottom-right-radius: length;
</div><br>
<div id="percentage">
border-bottom-right-radius: percentage;
</div><br>
<div id="inherit">
border-bottom-right-radius: inherit;
</div>
</body>
</html>
Output:
Supported Browsers: The browser supported by border-bottom-right-radius property are listed below:
- Google Chrome 4.0 and above
- Edge 12.0 and above
- Internet Explorer 9.0 and above
- Firefox 4.0 and above
- Safari 5.0 and above
- Opera 10.5 and above
CSS border-bottom-right-radius Property – FAQs
What is the border-bottom-right-radius property in CSS?
The border-bottom-right-radius property in CSS defines the curvature of the bottom-right corner of an element. It can be used to create rounded corners with a custom radius for that specific edge.
How can I create a fully rounded bottom-right corner?
To create a fully rounded corner, set the radius to 50% of the element’s height and width, or use a single large value like border-bottom-right-radius: 100px;. This will create a circular or fully curved effect on the bottom-right corner.
Can I apply different radii for the horizontal and vertical axes?
Yes, you can specify different radii for the horizontal and vertical axes. For example, border-bottom-right-radius: 30px 10px; creates an elliptical curve with a 30px horizontal radius and a 10px vertical radius.
What is a practical use case for border-bottom-right-radius?
It’s commonly used in card designs, buttons, and containers where rounded corners are part of the design aesthetic. This property lets you achieve consistent and smooth rounding for just one corner, giving more design flexibility.
Why isn’t my border-bottom-right-radius visible?
If the radius isn’t visible, it could be due to zero height or width on the element, a conflicting border style, or hidden overflow settings. Ensure that the element’s dimensions allow for the radius effect to be seen.