empty-cells property specifies whether to display or hide borders on empty table cells.
Empty table cells are cells that don't contain any visible content. Visible content includes
and other whitespace except ASCII CR (
\0D), LF (
\0A), tab (
\09), and space (
Empty cells and cells with the
visibility property set to
hidden are considered to have no visible content. Cells are empty unless they contain one or more of the following:
- floating content (including empty elements),
- in-flow content (including empty elements) other than white space that has been collapsed away by the
empty-cells property is set to
show, borders are drawn around the empty cell and backgrounds are drawn behind it. When set to
hide, no borders are drawn around it and no background is drawn.
Also, if all the cells in a row have a value of
hide and have no visible content, then the row has zero height and there is vertical border-spacing on only one side of the row.
- Borders and backgrounds are drawn around/behind empty cells (like normal cells).
- No borders or backgrounds are drawn around/behind empty cells. Also, if all the cells in a row have a value of
hideand have no visible content, then the row has zero height and there is vertical border-spacing on only one side of the row.
In addition, all CSS properties also accept the following CSS-wide keyword values as the sole component of their property value:
- Represents the value specified as the property's initial value.
- Represents the computed value of the property on the element's parent.
- This value acts as either
initial, depending on whether the property is inherited or not. In other words, it sets all properties to their parent value if they are inheritable or to their initial value if not inheritable.
- Initial Value
- Applies To
- Animation Type