Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML/CSS - Styling for print, background color and image would not show in IE and Firefox?

how can i show the background color and image while printing, i knew it this is the browser properties but i want to complete it from CSS such as i use for webkit -webkit-print-color-adjust: exact; so how can i achieve it.

like image 639
user2029716 Avatar asked Feb 02 '13 08:02

user2029716


1 Answers

No, it is not possible, see: -webkit-print-color-adjust

The -webkit-print-color-adjust property is a non-standard CSS extension that can be used to force printing of background colors and images in browsers based on the WebKit engine.

There is no such solution for Firefox or IE.

The only solution there is to uncheck the checkbox "Print background colors" in the print dialog manually.

like image 189
rubo77 Avatar answered Oct 14 '22 10:10

rubo77