property-value
Display/table column group — CSS reference
Generates a group of columns, usually from colgroup. Its background may show through transparent cell and row backgrounds. The column group is not a DOM ancestor of the cells and cannot supply inherited text formatting to them.
Formal Syntax & Structure
css syntaxcss
display: table-column-group;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>display/table-column-group</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}body{font:16px/20px sans-serif;background:white}#a{padding:0;background:transparent;margin:10px;color:black}table{border-spacing:0}td,th{padding:0}caption{padding:0}#a{table-layout:fixed;width:200px}#col1{width:70px;}td{height:30px}#g{background:blue}</style><body><table id="a"><colgroup id="g"><col id="col1"><col></colgroup><tr><td id="x">A</td><td id="y">B</td></tr></table></body></html>