Reputation: 639
As we all know normally we call background(Div background, table background etc...) color or images from css but when we check same page as a print preview those properties does not appear.
Is any one know how to fix it?
Thanks AV
Upvotes: 0
Views: 532
Reputation: 15394
Those properties don't appear in print-preview because printers don't print them. So you're seeing it how it will get printed out.
There is no way for you, the developer, to fix this.
the end-user, depending on the browser s/he uses, can edit his/her printer options in the print dialog to get this to print out, but you cannot control that.
Upvotes: 0
Reputation: 15291
By default these aren't displayed, however the user can change the settings of this in their browser:
http://support.microsoft.com/kb/296326
http://malektips.com/firefox_0026.html
this will be useful as it explains how you can use a print css to display some items when printing: How can I print background images in FF or IE?
Upvotes: 1
Reputation: 51191
Background-colors are disabled in the print preview of some browsers to be more economic and save ink.
I'm not sure, but declaring them explicitly in the print-css could help (Declare mediatype print for that):
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
In every case, the user can configure his browser to print the background-colors.
Upvotes: 0