- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML DOM Style borderBottomLeftRadius Property
The borderBottomLeftRadius is used to add rounded corners to the element’s bottom right border. We can set and get the border shape at the bottom left corner.
Syntax
Following is the syntax for −
Setting the borderBottomLeftRadius property −
object.style.borderBottomLeftRadius = "length|% [length|%]|initial|inherit"
Values
The property values are explained as follows −
Sr.No | Values & Description |
---|---|
1 | length For defining the bottom left corner shape |
2 | % For defining the bottom left corner shape in percentage. |
3 | initial For setting this property to initial value. |
4 | inherit To inherit the parent property value |
Example
Let us look at an example for the borderBottomLeftRadius property −
<!DOCTYPE html> <html> <head> <style> #DIV1{ height: 100px; width: 200px; border: 10px groove orange; padding: 10px; border-bottom-left-radius: 240px 90px; } </style> <script> function changeBottomBorder(){ document.getElementById("DIV1").style.borderBottomLeftRadius="90px 50px"; document.getElementById("Sample").innerHTML="The bottom border left radius is now decreased"; } </script> </head> <body> <div id="DIV1">SOME SAMPLE TEXT</div> <p>Change the above image bottom left border size by clicking the below button</p> <button onclick="changeBottomBorder()">Change Bottom Border</button> <p id="Sample"></p> </body> </html>
Output
This will produce the following output −
On clicking the “Change Bottom Border” button −
Advertisements