Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Selected Reading
CSS border-bottom-left-radius property
The CSS border-bottom-left-radius property is used to set the radius of the bottom-left corner of an element's border. This property allows you to create rounded corners specifically for the bottom-left corner while keeping other corners sharp or applying different radii.
Syntax
selector {
border-bottom-left-radius: value;
}
Possible Values
| Value | Description |
|---|---|
length |
Defines the radius in px, em, rem, etc. |
% |
Defines the radius as a percentage of the element's dimensions |
initial |
Sets the property to its default value (0) |
inherit |
Inherits the value from the parent element |
Example: Setting Bottom-Left Corner Radius
The following example demonstrates how to apply a specific radius to only the bottom-left corner −
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 200px;
height: 150px;
background-color: #4CAF50;
border: 3px solid #2E7D32;
padding: 20px;
color: white;
display: flex;
align-items: center;
justify-content: center;
margin: 20px;
}
.bottom-left-only {
border-bottom-left-radius: 30px;
}
.combined-radius {
border-radius: 10px;
border-bottom-left-radius: 45px;
}
</style>
</head>
<body>
<div class="box bottom-left-only">
Bottom-left radius only
</div>
<div class="box combined-radius">
Combined with border-radius
</div>
</body>
</html>
Two green boxes appear: 1. First box has only the bottom-left corner rounded with 30px radius 2. Second box has all corners rounded to 10px, but the bottom-left corner is overridden to 45px
Conclusion
The border-bottom-left-radius property provides precise control over individual corner rounding. It can be used alone or combined with other border-radius properties to create unique corner effects.
Advertisements
