Well, this is nonsense:
Code:
@media print { * { background-image: white !important; color: #000; } }
and could even be causing problems. If it is already a print stylesheet, the media declaration should have already been made in the stylesheet link on the page using it. The background-image selector takes only an image as its value, not a color. So, assuming that this is already a print stylesheet as declared in its on page link:
HTML Code:
<link rel="stylesheet" href="print.css" media="print" type="text/css">
it should be:
Code:
* { background-color: white!important; color: #000; }
or even:
Code:
* { background-color: white; color: #000; }
as !important is only for overriding other styles (in this case only other print styles, the sheet itself will override the media="screen" sheet).
Somewhat the same with this:
Code:
background-image: #fff url(img/ocr_bg.jpg) 0 0 repeat-y fixed;
It should be:
Code:
background: #fff url(img/ocr_bg.jpg) 0 0 repeat-y fixed;
Now, the problem with a background image for printing is that some browsers will automatically remove background images for printing, using !important may help with that:
Code:
background: #fff url(img/ocr_bg.jpg) 0 0 repeat-y fixed!important;
If it is a solid black color, consider using a background-color instead. In any case, large black areas are to be avoided in printing, unless you own stock in a company that sells ink.
Bookmarks