B.34. empty-cells
This property lets you set whether empty table cells are displayed in a table operating in "separate borders" mode (see Section B.15border-collapse) or not.
Inherited: Yes
See also: Section B.15border-collapse
B.34.1. Value
show or hide. When set to hide, empty table cells, their borders, and their backgrounds are not drawn—the table background is visible in their place.
Initial value: show[4]
[4] Netscape 6 and Mozilla browsers default to hide when running in "quirks mode".
B.34.2. Compatibility
CSS Version: 2
Supported by Netscape 6 and Mozilla browsers. Not yet supported by any version of Internet Explorer.
B.34.3. Example
This style rule sets tables of class seethru to hide empty table cells:
table.seethru { border-collapse: ...
Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.