FILTER AND COLOR CSS

Asked

Viewed 53 times

1

I need to pass a file to print in another color. In the specific situation, I just need to go on inspecting elements and change the color.

I have 3 separate files, one of them I can change the colors only using the INSPECT ELEMENTS:

*{
    color: blue !important;
    border-color: blue !important;
}

Already the second file, I can change the color, but it has a barcode, which is in a TAG IMG, with a GIF.

And the third is a file PDF.

I need to change the color of these elements, just by INSPECTING ELEMENTS, it’s something simple.

I had tried FILTER, but it turned out that the barcode was all blue in the background.

Is there any way to do what I want, change all the color of a page and a PDF directly by inspecting, using FILTER or other element?

1 answer

0

Tried to separate CSS for printing and page?

CSS3:

@media screen {
    pre{
        color:blue;
    }
}
@media print {
    pre{
        color:#000;
    }
}

Browsers without CSS3 support:

<head>
   <link rel="stylesheet" type="text/css" href="theme.css">
   <link rel="stylesheet" type="text/css" href="print.css" media="print">
</head>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.