0

I am finding an issue which is specific with IE-7. Working on FF, Chrome, IE 8/9. The issue is that IE 7 is not honoring border color on tr. Any workaround in CSS, Jquery, Javascript appreciated. http://jsfiddle.net/VW84N/

Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322

4 Answers4

1

a simple workaround: http://jsfiddle.net/fcalderan/VW84N/4/ without borders on <tr>

just use this CSS

table { border-right: 1px red solid; border-left: 1px red solid; }
td { border-bottom: 1px red solid; }
tr:first-child td { border-top: 1px red solid;  }
Fabrizio Calderan
  • 120,726
  • 26
  • 164
  • 177
1

Sadly, but true: that's totally IE.

I've been using the workaround described here:

http://csarven.ca/tr-border-trick-for-ie

Khôi
  • 2,133
  • 11
  • 10
0

This is a well-known issue. As a workaround, apply the border to the table cells instead of the row itself.

For example, an easy solution is to do:

table { border-collapse: collapse; border-spacing: 0 } /* you have to do this */
table { border: 1px solid red } /* borders around the whole table */
table tr + tr td { border-top: 1px solid red } /* borders between rows */

See it in action.

Jon
  • 428,835
  • 81
  • 738
  • 806
0

did you try

<tr style="border-color:yourcolor"><td>....</td></tr>
bassem ala
  • 181
  • 1
  • 13