I’m trying to setup my tables to be semi-transparent (to give the illusion of being disabled). I have it working perfectly in firefox and nearly perfect in IE. However, there is one small problem in IE I can not seem to fix. In IE (7/8) the entire table is transparent with the exception of the Table Column Header Text. This sticks out like a sore thumb, any ideas on what I can do to get this working?
.hideTable{
background-color: white;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter:alpha(opacity=30); /* IE */
opacity: 0.3; /* Safari, Opera */
-moz-opacity:0.30; /* FireFox */
z-index: 20;
height: 100%;
width: 100%;
background-repeat:no-repeat;
background-position:center;
cursor: default;
}
Here is the html, which may not be perfect because I pulled it out of IE Developer tools… but I wanted you to see the html after it has been manipulated by javascript.
<div class="wrap_window hideTable">
<table class=sectiontableheader width="100%">
<tbody>
<tr>
<td style="TEXT-ALIGN: left"><SPAN style="CURSOR: default" class=title onclick=""><A name="sample">Sample Table</A></SPAN></td>
<td style="TEXT-ALIGN: right"><SPAN style="CURSOR: default" class=but onclick=""><SPAN style="CURSOR: default" id=section-header-sample-table class=switch_button onclick="">Details</SPAN><SPAN style="CURSOR: default" class=switch_button onclick="">Print</SPAN><SPAN style="CURSOR: default" class=switch_button onclick=""> -/+ </SPAN></SPAN></td></tr></tbody></table>
<FORM style="MARGIN: 0px" id=sample-form name=sample-form action=#>
<div id=sample-table_wrapper class=dataTables_wrapper>
<div class=dataTables_scroll>
<div style="BORDER-BOTTOM: 0px; POSITION: relative; BORDER-LEFT: 0px; WIDTH: 913px; OVERFLOW: hidden; BORDER-TOP: 0px; BORDER-RIGHT: 0px" class=dataTables_scrollHead>
<div style="WIDTH: 930px" class=dataTables_scrollHeadInner>
<table style="WIDTH: 913px; MARGIN-LEFT: 0px" class="display dataTable" border=0 cellSpacing=0 cellPadding=0>
<thEAD>
<tr>
<th style="WIDTH: 229px" class="dataTable-defaultSort sorting_desc" jQuery1295284415016="82">Column</th>
<th style="WIDTH: 190px" class=sorting jQuery1295284415016="84">Column</th>
<th style="WIDTH: 187px" class=sorting jQuery1295284415016="85">Column</th>
<th style="WIDTH: 140px" class=sorting jQuery1295284415016="87">Column</th>
<th style="WIDTH: 153px" class=sorting jQuery1295284415016="91">Column</th></tr></THEAD></table></div></div>
<div style="WIDTH: 100%; HEIGHT: 17px; OVERFLOW: auto" class=dataTables_scrollBody jQuery1295284415016="80">
<table style="WIDTH: 913px; MARGIN-LEFT: 0px" id=sample-table class="display dataTable" border=0 cellSpacing=0 cellPadding=0>
<thEAD>
<tr style="HEIGHT: 0px">
<th style="PADDING-BOTTOM: 0px; WIDTH: 229px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 0px; PADDING-TOP: 0px" class="dataTable-defaultSort sorting_desc" jQuery1295284415016="82"></th>
<th style="PADDING-BOTTOM: 0px; WIDTH: 190px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 0px; PADDING-TOP: 0px" class=sorting jQuery1295284415016="84"></th>
<th style="PADDING-BOTTOM: 0px; WIDTH: 187px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 0px; PADDING-TOP: 0px" class=sorting jQuery1295284415016="85"></th>
<th style="PADDING-BOTTOM: 0px; WIDTH: 140px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 0px; PADDING-TOP: 0px" class=sorting jQuery1295284415016="87"></th>
<th style="PADDING-BOTTOM: 0px; WIDTH: 153px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 0px; PADDING-TOP: 0px" class=sorting jQuery1295284415016="91"></th></tr></THEAD>
<tbody>
<tr class=odd>
<td class=dataTables_empty vAlign=top colSpan=5>No data available in table</td></tr></tbody></table></div></div>
<div class=bottom>
<div id=sample-table_filter class=dataTables_filter>Search: <INPUT disabled type=text jQuery1295284415016="81"></div></div></div></FORM>
</div>
I’ve also attached a screenshot of the bug in IE.
Thanks for any insight you may be able to offer on this problem.