CSS border-bottom-right-radius Property

CSS border-bottom-right-radius Property

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

selector { border-bottom-right-radius: value; }

Accepted Values:

ValueDescription
lengthSpecifies the radius in units such as px, em, rem, %, etc.
%Defines the radius as a percentage of the element's width/height.
inheritInherits the value from the parent element.

2. Example – Applying a Rounded Bottom-Right Corner

.box { width: 200px; height: 100px; background-color: lightblue; border: 2px solid blue; border-bottom-right-radius: 20px; }
<div class="box">Rounded Bottom-Right Corner</div>

✅ The bottom-right corner will have a 20px radius, making it rounded.

3. Example – Using Percentage Values

.box { width: 200px; height: 100px; background-color: orange; border: 2px solid red; border-bottom-right-radius: 50%; }

✅ 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:

.box { width: 200px; height: 100px; background-color: green; border: 2px solid black; border-top-left-radius: 30px; border-top-right-radius: 0; border-bottom-left-radius: 15px; border-bottom-right-radius: 40px; }

✅ 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:

.box { border-radius: 0 0 30px 50px; /* top-left, top-right, bottom-right, bottom-left */ }

✅ This is equivalent to:

.box { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 30px; border-bottom-left-radius: 50px; }

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.

Soeng Souy

Soeng Souy

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

CAN FEEDBACK
close