concept
Fragmentation — CSS reference
Splits a flow across separate containers, such as columns or pages, when the flow cannot remain in one container. One DOM element can generate multiple box fragments. The example splits a 100px block into 60px and 40px fragments.
Formal Syntax & Structure
css syntaxcss
column-count: 2; height: 60px;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>fragmentation</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#m{width:300px;height:60px;column-count:2;column-gap:20px;column-fill:auto;background:#eef2f7;color:#162b39}.item{height:20px;box-sizing:border-box;break-inside:avoid;background:#dbeafe;line-height:20px}</style><body><article id="m"><div id="t" style="height:100px;background:#dbeafe">A tall block</div></article></body></html>