<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
border: 1px solid black;
width: 150px;
height: 100px;
}
</style>
</head>
<body>
<h1>CSS writing-mode Property</h1>
<div id="point">
This is a div.
</div>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("div")[0];
function myFunction(){
x.style.writingMode = "vertical-rl";
}
</script>
<p><strong>Note</strong>: click on the button to change the 'writing-mode' from horizontal-tb to vertical-rl.</p> </body>
</html>