HTML Editor
<!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 */ } #point{ -moz-column-fill: auto; /* Firefox */ column-fill: auto; } #point1{ -moz-column-fill: balance; /* Firefox */ column-fill: balance; } #point2{ -moz-column-fill: balance-all; /* Firefox */ column-fill: balance-all; } </style> </head> <body> <h1>CSS column-fill Property</h1> <h2>column-fill: auto</h2> <div id="point"> 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> <h2>column-fill: balance</h2> <div id="point1"> 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> <h2>column-fill: balance-all</h2> <div id="point2"> 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> <p><strong>Note</strong>: Try to resize the width of this output window if you can't find any difference.</p> </body> </html>
OUTPUT
×

Save as Private