CSS empty-cells Property Reference
The CSS empty-cells property is a standard property in CSS Table. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
empty-cells overview
The CSS empty-cells property is a standard property in CSS Table. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | show | hide |
| Initial value | show |
| Applies to | tableCellElements |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Table |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set empty-cells. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
empty-cells: initial;
}
.inherit-example {
empty-cells: inherit;
}
@supports (empty-cells: initial) {
.supported {
empty-cells: initial;
}
}