concept

Column spanner — CSS reference

A column spanner interrupts one set of columns, spans the multicol width and allows the later content to form a new set. Use a semantic heading when the spanning content is a section title.

Formal Syntax & Structure

css syntaxcss
column-span: all;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Column spanner</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}#m{height:auto;column-fill:balance}#span{column-span:all;margin:0;font: bold 16px/30px sans-serif;background:#a7f3d0}</style><body><article id="m"><div class="item" id="i1">A</div><div class="item" id="i2">B</div><h2 id="span">Section heading</h2><div class="item" id="i3">C</div><div class="item" id="i4">D</div></article></body></html>
CSS Reference