Forum Moderators: not2easy
.bar {position:absolute; left:0px; background:#022B7F; color:#FFF;}
.chart {position:relative; width:18%; background:#AAA; border:solid 1px #555; vertical-align:middle;}
<span class="chart"><span class="bar" style="width:XX%"></span></span>
[1]where XX is a calculated percentage.[/1]
This works quite nicely on screen. The issue is with printing. Since the
.bar style uses a background color, and since most people have the "Print background" option turned off in their browsers, the bar does not print. I'm feel pretty safe in guessing that there no way to turn on the user's background printing. Is there a way in CSS to get a solid color "foreground"? I think I could just use a 1 pixel wide image instead (need to play with that), but I'm wondering if there's another way.
Thanks for your help.