CSS - border-bottom-right-radius Property
CSS border-bottom-right-radius property controls the roundness of the bottom-right corner of an element's border.
Possible Values
<length>: Size of circle radius is denoted, using length values. Negative values are not valid.
<percentage>: Size of circle radius is denoted, using percentage values.
Horizontal axis percentage is referred to the width of the box.
Vertical axis percentage is referred to the height of the box.
Negative values are not valid.
Applies to
All the HTML elements.
DOM Syntax
object.style.borderBottomRightRadius = "length";
If you set the border-bottom-right-radius property directly on an element, and then set the border-radius property on the same element without setting the border-bottom-right-radius property, the border-bottom-right-radius property will be reset to its initial value.
CSS Border Bottom Right Radius - Length Value
Here is an example of how to create a bottom-right rounded corner using length value −
<html> <head> <style> .rounded-border { background-color: pink; border: 3px solid green; border-bottom-right-radius: 50px; background-size: 100% 100%; width: 200px; height: 200px; } </style> </head> <body> <div class="rounded-border"> bottom-right rounded corner. </div> </body> </html>
CSS Border Bottom Right Radius - Percentage Value
Here is an example of how to create a bottom-right rounded corner using percentage value −
<html> <head> <style> .rounded-border { background-color: pink; border: 3px solid green; border-bottom-right-radius: 25%; background-size: 100% 100%; width: 200px; height: 200px; } </style> </head> <body> <div class="rounded-border"> bottom-right rounded corner. </div> </body> </html>
CSS Border Bottom Right Radius - Animation
Here is an example of how to create a bottom-right rounded corner with an animation −
<html> <head> <style> .rounded-border { background-color: pink; border: 3px solid green; background-size: 100% 100%; width: 200px; height: 200px; animation: animatedRadius 5s infinite; } @keyframes animatedRadius { 50% { border-bottom-right-radius: 100px; } } </style> </head> <body> <div class="rounded-border"> bottom-right rounded corner with animation. </div> </body> </html>
CSS Border Bottom Right Radius - Different Shapes
You can create different shapes on the bottom-right corner of an element using border-bottom-right-radius property.
Here is an example −
<html> <head> <style> .rounded-box { width: 150px; height: 150px; background-color: pink; border: 3px solid green; margin: 10px; } .rounded-box.circle-arc { border-bottom-right-radius: 35px; } .rounded-box.ellipse-arc { border-bottom-right-radius: 75px 35px; } .rounded-box.square-per { border-bottom-right-radius: 30%; } .non-square-per { border-bottom-right-radius: 30%; width: 200px; height: 100px; background-color: pink; border: 3px solid green; margin: 10px; } </style> </head> <body> <h3>Different shapes using border-bottom-right-radius pproperty</h3> <div class="rounded-box circle-arc"> Arc of an circle. </div> <div class="rounded-box ellipse-arc"> Arc of an ellipse. </div> <div class="rounded-box square-per"> Square element with % radius. </div> <div class="non-square-per"> Non-square element with % radius. </div> </body> </html>
CSS Border Bottom Right Radius - Image
You can add a rounded border to the top-right corner of an image using border-bottom-right-radius property.
Here is an example −
<html> <head> <style> .img-border-radius { background-image: url(images/tree.jpg); border-bottom-right-radius: 6em; background-size: 100% 100%; width: 200px; height: 200px; } </style> </head> <body> <div class="img-border-radius"> bottom-right rounded corner image. </div> </body> </html>
To Continue Learning Please Login
Login with Google