What CSS should I use to make a cell's border appear even if the cell is empty?
IE 7 specifically.
Syntax: empty-cells: show|hide|initial|inherit; Default Value: show.
CSS Border Not Showing If you've set the shorthand border property in CSS and the border is not showing, the most likely issue is that you did not define the border style. While the border-width and border-color property values can be omitted, the border-style property must be defined. Otherwise, it will not render.
If I recall, the cell dosn't exist in some IE's unless it's filled with something...
If you can put a
(non-breaking space) to fill the void, that will usually work. Or do you require a pure CSS solution?
Apparently, IE8 shows the cells by default, and you have to hide it with empty-cells:hide
But it doesn't work at all in IE7 (which hides by default).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With