<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
padding: 10px;
margin-bottom: 10px;
border-style: dotted;
border-right-width: 1px;
}
</style>
</head>
<body>
<h1>CSS border-right-width Property</h1>
<div>
This is div container.
</div>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("div")[0];
function myFunction(){
x.style.borderRightWidth = "5px";
}
</script>
<p><strong>Note</strong>: Click on the button to change the 'border-right-width' from 1px to 5px.</p> </body>
</html>