MustangPriMe
IS-IT--Management
I'm trying to include a horizontal bar chart as a background to an HTML table so that the data appears on top of it.
This is what I have:
..with the bar chart in this example linked to the final column.
This works OK, but has two major drawbacks...
1) It doesn't work at all in Firefox.
2) It's flakey for printing - often the data will not print.
Can anyone provide a fix OR a better solution?
Thanks
Paul
This is what I have:
Code:
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align:left;width:160px;padding:0px;">
<div style="width:1000px;position:absolute;float:left;z-index:-14001;height:16px;background-color:#FFFFEE;">
<div style="width:720px;float:left;z-index:-1;height:16px;background-color:#B4E5CE;position:absolute;"> </div>
</div>
<div style="overflow:hidden;max-height:16px;">Row name here </div>
</td>
<td>1.00</td>
<td>135</td>
<td>88.5</td>
<td>0</td>
<td>0.5</td>
<td>8.5</td>
<td>97.5</td>
<td>65</td>
<td>72%</td>
</tr>
</table>
This works OK, but has two major drawbacks...
1) It doesn't work at all in Firefox.
2) It's flakey for printing - often the data will not print.
Can anyone provide a fix OR a better solution?
Thanks
Paul