property-value
Display/table column — CSS reference
Generates a column box, usually from col. Column boxes support a restricted set of properties; width and background can affect the column but text alignment does not inherit from col into cells, because col is not their DOM ancestor.
Formal Syntax & Structure
css syntaxcss
display: table-column;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>display/table-column</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;background:red}td{height:30px}</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>