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;
}

  

 

 

 

back to top