concept

Column rule painting — CSS reference

Column rules decorate gaps between adjacent columns with content. Their thickness does not consume layout space: changing the rule width keeps column sizing fixed.

Formal Syntax & Structure

css syntaxcss
column-rule: 4px solid rgb(0, 100, 100);

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Column rule painting</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{column-rule:4px solid rgb(0, 100, 100)}</style><body><article id="m"><div class="item" id="i1">Section 1</div><div class="item" id="i2">Section 2</div><div class="item" id="i3">Section 3</div><div class="item" id="i4">Section 4</div><div class="item" id="i5">Section 5</div><div class="item" id="i6">Section 6</div></article></body></html>
CSS Reference