CSS:
table {
empty-cells: show;
}
You also need to put IE in standards rendering mode for this to work. After adding a doctype, at least IE8 (Beta 2 and higher) plays nicely.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
IE7 and below still won't do it. Support for empty-cells
is said to be "partial" (for IE7 and IE8 Beta 1) on the MS CSS compatibility statement. Whatever "partial" means, not implementing "show" can hardly be called "partial support". These browsers can be forced to draw the cell borders by generally collapsing table borders:
table {
border-collapse: collapse;
}
The setting of empty-cells
is ignored. But once you collapse the borders, you don't need to set that anyway, because all browsers will display collapsed borders.