I have given a table background image using css background-image property. The cells are given opacity settings so that the image is shown through the cells. In Firefox it works perfectly but in IE all the cells(TDs) are showing the background image. How do I fix the issue in IE. Click the link below for the page
html page here
views:
320answers:
3All the individual cells seem to inherit the background-image styling from the table.
Adding something like
td { background: transparent; }
seems to fix the problem in IE.
Could you wrap the table in a div?
If so then you could apply the background image to the div wrapper, which shouldn't affect the table or its cells in any way :)
I got the solution. I have added "td" to the selectors tr.normalRow, tr.alternativeRow, tr.selectedRow, tr.hoverRow and also added the property "background-image: none;". Here is the code I used:
Code:
tr.normalRow td{ background: #FFFFFF; font-size: 11px; cursor: pointer; filter: alpha(opacity = 90); -moz-opacity: .90; opacity: .90; background-image: none; }
tr.alternativeRow td{ background: #f4f4f4; font-size: 11px; cursor: pointer; filter: alpha(opacity = 90); -moz-opacity: .90; opacity: .90; background-image: none; }
tr.selectedRow td{ background: #fff19f; font-size: 11px; cursor: pointer; filter: alpha(opacity = 90); -moz-opacity: .90; opacity: .90; background-image: none; }
tr.hoverRow td{ background: lightblue; font-size: 11px; cursor: pointer; filter: alpha(opacity = 90); -moz-opacity: .90; opacity: .90; background-image: none; }