empty-cells
A table property that determines if borders and backgrounds should be shown for cells that have no visible content.
It is documented as part of the CSS Table specification.
Syntax
/* Usage Example */
table {
/* Hides borders/backgrounds for cells with no text or content */
empty-cells: hide;
}
/* Syntax */
empty-cells: show;
empty-cells: hide;
/* Global values */
empty-cells: inherit;
empty-cells: initial;
empty-cells: revert;
empty-cells: revert-layer;
empty-cells: unset;
empty-cells Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
1+
1+
1.2+
12+