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.NoValues & Description
1length
For defining the bottom left corner shape
2%
For defining the bottom left corner shape in percentage.
3initial
For setting this property to initial value.
4inherit
To inherit the parent property value

Example

Let us look at an example for the borderBottomLeftRadius property −

Live Demo

<!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 −

Updated on: 15-Feb-2021

43 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements