<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
border: 1px solid #267326;
padding: 10px;
margin-bottom: 25px;
height: 75px;
column-count: 2;
-webkit-column-count: 2; /* Chrome, Safari, Opera */
-moz-column-count: 2; /* Firefox */
column-fill: auto;
-moz-column-fill: auto; /* Firefox */
}
</style>
</head>
<body>
<h1>CSS column-fill 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.columnFill = "balance";
x.style.WebkitColumnFill = "balance";
x.style.MozColumnFill = "balance";
}
</script>
<p><strong>Note</strong>: Click on the button to change the column-fill from auto to balance.</p> </body>
</html>