2

Fiddle

<table>
    <tr style="border:1px solid black"><td>hi</td></tr>
</table>

In FF7 I can see the border. In IE7 I see no border. How can I display the border for the row? I would like to avoid having to add borders at the td level due to the complexity this adds determining column index for border placement.

P.Brian.Mackey
  • 43,228
  • 68
  • 238
  • 348
  • 1
    There's no way to fix this. The workaround is, unfortunately, to put the border on the `td`s instead. – thirtydot Nov 11 '11 at 16:47

2 Answers2

1

Its not possible to go directly to TR. Unfortunetly, even though you specified in the question that you would like to avoid td, the workaround is to use a td.

Community
  • 1
  • 1
Esocoder
  • 1,032
  • 1
  • 19
  • 40
  • http://stackoverflow.com/questions/2832260/why-border-of-tr-not-showing-in-ie <- Maybe this helps..... – Esocoder Nov 11 '11 at 16:37
  • http://stackoverflow.com/questions/583539/set-border-to-table-tr-works-in-everything-except-ie-6-7 – Esocoder Nov 11 '11 at 16:47
1

It appears that IE7 is super buggy (as apposed to IE6 which is uber-super buggy).

Here is a fiddle that demonstrates a possible workaround (top and bottom borders on the TD elements).

DwB
  • 37,124
  • 11
  • 56
  • 82
  • lol, I think you are correct in that going directly to `td` is going to be the only way to accomplish the task. It sucks to have to find first,last,middle columns to determine what kind of border to insert, but yea IE7 is old as dirt so I guess its to be expected. – P.Brian.Mackey Nov 11 '11 at 16:49