Warning: Undefined array key "StartingPoint" in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 107 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/f/0/safaribears.de/httpd.www/content.php:107) in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 115 Warning: Undefined variable $WEB_ROOT in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 118 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/f/0/safaribears.de/httpd.www/content.php:107) in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 118 Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /customers/f/f/0/safaribears.de/httpd.www/content.php on line 169 CSS Tutorial - Tables - empty-cells

With 'empty-cells' you can force borders around empty cells:
empty-cells: show;, or you can remove them: empty-cells: hide;

table{
border:solid red 2px;
border-spacing:3px 10px;
empty-cells:show;
}
This is column 1 This is column 2 This is column 3 This is column 4
Here's data Here's data Here's data Here's data
Here's data Here's data Here's data

Now the empty cell has a border, too, and also you can see the border-spacing style with two parameters, one for a width for horizontal spacing, and one for vertical spacing.

Remember, this style is for tables with the style border-spacing set (Separated borders model).

And there's still more to those two different table models!

This is column 1 This is column 2 This is column 3 This is column 4
Here's data Here's data Here's data Here's data
Here's data Here's data Here's data

Above is our table of the Collapsing Border Model again. Remember, it has this style: border-collapse:collapse;.
Below is its collegue from the Separated Borders Model department: its style is set with: border-spacing:1em;. What's different now for both of them, is the border style is set to 'inset' on the first two rows and to 'outset' in the last row; and the width is set to 5px to make it more obvious.

This is column 1 This is column 2 This is column 3 This is column 4
Here's data Here's data Here's data Here's data
Here's data Here's data Here's data

To use the border styles 'inset' and 'outset' (make the cells look embedded into the canvas or coming out of it), one has to set the mode of the table to Separated Borders Model, by using border-spacing.
If it is a Collapsing Border Model then inset and outset will have the same effect as ridge and groove! (see also the chapter about borders).