Tag: css IE cross-browser issues

CSS Border-top does not show in empty cells

In IE, borders created by styling a table cell with “border-top” attribute do not show up when used on a td tag, unless there is some content inside the cell, at least a non-breaking space. This is not the case in other browsers – the border will show up even when the cell is blank.

In the example below, there is a single table, with three columns and three rows, but only the first 2 rows contain anything. The last row is completely empty. The tag “td” has been styled with


border-top-width: 2px;
border-top-style: solid;
border-top-color: #003399;

Continue reading