<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
width: 150px;
height: 100px;
border: 1px solid #8c8c8c;
overflow: auto;
resize: none;
}
</style>
</head>
<body>
<h1>CSS resize Property</h1>
<div id="point">
My Container
</div>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("div")[0];
function myFunction(){
x.style.resize = "both";
}
</script>
<p><strong>Note</strong>: Click on the button to change the 'resize' from none to both.</p> </body>
</html>