Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS: Print font colors in Firefox

I'm trying to style a web page for printing. I want fonts to be printed in the original color. In Firefox fonts are always turn to black when printing. The setting of "Print Background (colors & images)" is turned on.

Any ideas?

like image 378
Alex Avatar asked Nov 08 '22 02:11

Alex


1 Answers

I had success with the solution similar in Firefox 70.0.1 to that described by Plenarto.
However I needed to set the color to transparent for Firefox to print the text as white.

h1 {
    color: transparent;
    text-shadow: 0 0 0px #fff;
}
like image 186
joshmatt Avatar answered Nov 15 '22 06:11

joshmatt