Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS to make an empty cell's border appear?

Tags:

css

What CSS should I use to make a cell's border appear even if the cell is empty?

IE 7 specifically.

like image 973
Allain Lalonde Avatar asked Sep 11 '08 16:09

Allain Lalonde


People also ask

How do you make a border visible in an empty cell of a table?

Syntax: empty-cells: show|hide|initial|inherit; Default Value: show.

Why won't my borders show up in CSS?

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.


1 Answers

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).

like image 155
Grant Avatar answered Oct 28 '22 16:10

Grant