Sometimes a simpler solution is best. Try adding this rule to your stylesheet as shown:
Code:
. . .
.opendiv{ /*header in open state*/
background: #D3DCEE;
font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#2A3E53; font-weight:normal;
}
.closeddiv{ /*header in closed state*/
color: #6688A4;
font-size:11px; font-weight:normal; font-family:Arial, Helvetica, sans-serif; text-decoration:none;
}
.closeddiv span * {
color:#EAEFF9!important;
}
.divcontent1 {padding:2px 5px; border-col . . .
I tested this out locally in Opera, FF and IE with good results. The key is in turning the text (color property) of all the span in question's children to the background color of the parent division, when the parent division
has the .closeddiv (signifying that it is collapsed and has its lighter bg color) class applied to it (below is just a color coded illustration of the elements involved, no code change is required there):
Code:
<div class="maindiv1" title="">
Title 1
<span style="width:300px; margin-left:20px;">
<script language="JavaScript1.2">//Tooltip Definition area
if (document.layers){
document.write('<ilayer name="nscontainer" width="100%" height="18">')
document.write('<layer name="fade1" width="100%" height="18">')
document.write('</layer></ilayer>')
}
else
document.write('<span ID="fade1"></span>')
</script>
</span>
</div>
Bookmarks