property
Break inside — CSS reference
Requests that a box remain unbroken when possible. It is not an absolute guarantee: a box larger than the available fragmentainer can still need to split or overflow. In this example the 40px card moves past a 20px remainder to the next column.
Formal Syntax & Structure
css syntaxcss
break-inside: avoid;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>break-inside</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}#first{height:40px;background:#cbd5e1}#card{break-inside:avoid;background:#a7f3d0}</style><body><article id="m"><div id="first">Intro</div><section id="card"><div class="item">Line A</div><div class="item">Line B</div></section></article></body></html>