borderBottomLeftRadius Property - Javascript CSS Style Property

Javascript examples for CSS Style Property:borderBottomLeftRadius

Description

The borderBottomLeftRadius property sets or gets the border's bottom-left corner radius.

Property Values

Value Description
length Set radius of the bottom-left corner. Default value is 0
% Set radius of the bottom-left corner in %
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Technical Details

Item Value
Default Value: 0
Return Value: A String, representing the border-bottom-left-radius property of an element
CSS VersionCSS3

Example

Add a rounded border to the bottom-left corner of a div element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
#myDIV {//w  w  w  . jav  a  2  s.co m
    border: 1px solid black;
    width: 300px;
    height: 300px;
}
</style>
</head>
<body>

<button onclick="myFunction()">Test</button>

<div id="myDIV">
  <h1>Hello</h1>
</div>

<script>
function myFunction() {
    document.getElementById("myDIV").style.borderBottomLeftRadius = "25px";
}
</script>

</body>
</html>

Related Tutorials