property
Orphans — CSS reference
Sets the minimum number of line boxes of a block before a fragmentation break. When only one line fits at a column bottom, this example moves the paragraph to the next column instead. It does not prevent every break.
Formal Syntax & Structure
css syntaxcss
orphans: 2;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>orphans</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}#lines{margin:0;font:16px/20px sans-serif;orphans:2;widows:1}</style><body><article id="m"><div id="first">Intro</div><p id="lines">One<br>Two<br>Three</p></article></body></html>