CSS border-bottom-right-radius
Property
The border-bottom-right-radius
property in CSS is used to round the bottom-right corner of an element. It allows you to create smooth, curved corners instead of sharp edges.
1. Syntax
Accepted Values:
Value | Description |
---|---|
length | Specifies the radius in units such as px , em , rem , % , etc. |
% | Defines the radius as a percentage of the element's width/height. |
inherit | Inherits the value from the parent element. |
2. Example – Applying a Rounded Bottom-Right Corner
✅ The bottom-right corner will have a 20px radius, making it rounded.
3. Example – Using Percentage Values
✅ The 50% radius makes the bottom-right corner a more exaggerated curve, depending on the element's dimensions.
4. Example – Combining with Other Border-Radius Properties
You can use border-bottom-right-radius
along with the other corner radius properties to create unique shapes:
✅ Each corner will have a different curvature, creating a custom shape.
5. Example – Using border-radius
Shorthand
Instead of defining each corner separately, you can use the border-radius
shorthand:
✅ This is equivalent to:
6. Best Practices
✔ Use px
for precise control and %
for more fluid designs.
✔ Combine with other border-radius
properties for custom shapes.
✔ Use border-radius
shorthand for cleaner, more readable CSS.