• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 415
  • Last Modified:

Background Color in Table Does Not Print

Hello,

Thanks for looking at this question.  We have a table that many times people would like to print.  The colors in the cells help to keep the info straight, however, when people print, the background color fails to print, just the table itself.  Is there anyway to configure or set the page/table so that the background color in the cells/table also prints?

Many thanks,

Yunkaa
0
yunkaa
Asked:
yunkaa
1 Solution
 
Timbo87Commented:
You can't force the page to print the table background color. The only way to do this would be to tell the user to go to the Tools menu, click Internet Options, click the Advanced tab, scroll down to Printing, and check "Print background colors and images".
0
 
sandy12879Commented:
Copy the same table in a excel sheet ,and try to print it from there...
0
 
ZontarCommented:
IN Mozilla and Netscape, this is done using File -> Page Setup -> check Print Background Colours & Images.

You might also try using CSS:

<style type="text/css">
@media print {
td.col1 {background-color:#FFC;}
}
</style>
<td class="col1">...</td>

But I'm not sure that this will override the user's settings or not, and my printer's DOA so I can't test it at the moment.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
yunkaaAuthor Commented:
Hi Zontar...

Please can you post the code with a table.  I keep getting errors trying to put it in the right place... :p

Many thanks,

Yun
0
 
seanpowellCommented:
What sort of errors - and what browser are you using?  Printing backgrounds is strictly a user - set preference.
0
 
EDDYKTCommented:
You don't have to write any code

Follow  Timbo87's suggestion.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now