HTML Dog
Skip to navigation

CSS Property: empty-cells

Whether borders and backgrounds of empty table cells should be shown or not.

Applies to boxes set to display: table-cell (of which td and th HTML elements are by default).

empty-cells will have no effect if border-collapse is set to collapse.

Possible Values

ValueDescription
hideEmpty cell borders and backgrounds are not rendered.
showEmpty cell borders and backgrounds are rendered. Default.
inherit
initial
unset

Example


td { empty-cells: hide; }

Browser support