XML technologies / CSS / Advanced websites with CSS / CSS property reference / empty-cells
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property empty-cells controls the display of empty cells in tables rendered using the separate-border model (see border-collapse).
Inherited: yes
See also: border-collapse
Values
The value show displays empty table cells. With hide empty cells, including their borders and backgrounds, are hidden, revealing the table background in their place.
Default value: show (Note: In transitional mode, Netscape 6 and Mozilla use the default value hide.)
Compatibility
CSS version: 2
Works in Netscape 6 and Mozilla. Not supported by any version of Internet Explorer.
Example
The following rule hides empty cells in tables of the class durchsicht:
table.durchsicht {
border-collapse: separate;
empty-cells: hide;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg