empty-cells CSS property show or hide borders and backgrounds of table cells that have no visible content. A non-breaking space (
) is considered as a visible content.
The following table summarizes the usages context and the version history of this property.
|Applies to:||The table-cell elements|
|Animatable:||No. See animatable properties.|
|Version:||CSS 2, 3|
The syntax of the property is given with:
The example below shows the
empty-cells property in action.
ExampleTry this code »
The following table describes the values of this property.
||Borders and backgrounds are drawn around empty cells like normal cells. This is default value.|
||No borders or backgrounds are drawn around empty cells.|
||Sets this property to its default value.|
||If specified, the associated element takes the computed value of its parent element
empty-cells property is supported in all major modern browsers.
Warning: Internet Explorer 7 and earlier versions don't support the
empty-cells property. IE8 supports this property, but requires a valid
See tutorial on: CSS Tables.