<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
border: 1px solid #267326;
padding: 10px;
margin-bottom: 25px;
columns: 150px 2;
-webkit-columns: 150px 2; /* Chrome, Safari, Opera */
-moz-columns: 150px 2; /* Firefox */
}
</style>
</head>
<body>
<h1>CSS columns Property</h1>
<div>
Joanne Rowling was born on 31st July 1965 at Yate General Hospital near Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.
</div>
<button onclick="myFunction()">Click Me</button>
<script>
var x = document.getElementsByTagName("div")[0];
function myFunction(){
x.style.columns = "3";
x.style.WebkitColumns = "3";
x.style.MozColumns = "3";
}
</script>
<p><strong>Note</strong>: Click on the button to change the columns from 2 to 3.</p> </body>
</html>