Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Printing background-color in Firefox and IE

Tags:

I am with some problems to print background-color in Firefox and IE. For Google Chrome I found the follow hack and it works well, but for Firefox and IE I can't find anything.

//Hack for Google Chrome
-webkit-print-color-adjust:exact;

I am glad if someone can help me with this.

like image 954
Wellington Zanelli Avatar asked Jun 05 '13 18:06

Wellington Zanelli


People also ask

How do I enable Print background color and image in Firefox?

First thing to check would be Page Setup. While in Print Preview, click the Page Setup button on the toolbar and make sure you've enabled "Print Background (colors & images)".

How do I get my printer to Print background color?

Go to Word > Preferences . Under Output and Sharing, select Print. Under Print Options, select the Print background colors and images check box. Close the Print dialog box, and go to File > Print.

Why is my printer not printing the background color?

First on the File menu, click Options > on the Display menu, click to select the Print background colors and images check box under Printing Options > and then click OK. Hope above suggestion helps you and good luck! Was this reply helpful?


2 Answers

For Firefox on the Print dialog there is an Advanced or Show Details button, if you click that , under Appearance there are two checkboxes. One for Print Background Colors and Print Background Images.

like image 57
EGHM Avatar answered Sep 23 '22 12:09

EGHM


* {
-webkit-print-color-adjust: exact;
printer-colors: exact;
color-adjust: exact;}

Browsers: Chrome, Safari, FireFox

More: https://wiki.csswg.org/ideas/print-backgrounds

like image 31
Pavel Levin Avatar answered Sep 23 '22 12:09

Pavel Levin