property
Empty cells — CSS reference
Controls painting of borders and backgrounds of cells without visible content in separated-border mode. A hidden empty cell still occupies its grid slot. It is not equivalent to display:none and does not remove the row or column.
Formal Syntax & Structure
css syntaxcss
empty-cells: hide;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>empty-cells</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{border-collapse:separate;empty-cells:hide}td{width:60px;height:30px;background:red;border:2px solid blue}</style><body><table id="a"><tr><td id="x"></td><td id="y">B</td></tr></table></body></html>