HTML CSS examples for CSS Layout:Column Layout
When using column-count for overflowing content
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #main_wrap{<!-- ww w .ja v a 2 s .c o m--> width:100%; border:solid 1px black; -moz-column-count: 3; -webkit-column-count: 3; column-count: 3; } #main_wrap > div{ border-radius:5px; position:relative; -moz-column-break-inside: avoid; -webkit-column-break-inside: avoid; column-break-inside: avoid; width:70%; height:300px; border:solid 2px blue; margin:2px; } #main_wrap > div > div{ position:absolute; background:red; border-radius:40px; width:40px; height:40px; right:-20px; top:0; clip: rect(0px,20px,40px,0px); } </style> </head> <body> <div id="main_wrap"> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> <div> <div></div> </div> </div> </body> </html>