css - Retain HTML font color when printing - IE settings, NOT printer issue -
this has been driving me mad day. @ first went down print settings route before realising it's "print background colors , images" option in ie that's been tripping me up.
the last test case code used:
<html> <style type="text/css">body{font-family:courier;}pre{display:inline;}</style> <body> <b><font color="#ffff00">this test</font></b><br/> </body> </html>
when viewed in ie "this test" displayed in bright yellow. when printing or print previewing it's rendered in i'd describe muddy yellow. same true if export pdf via virtual pdf printer. if enable "print background colors , images" correct yellow used, understand i've read option can't set programmatically.
it's not yellow, many similar colors end same each other in print preview, , need shade things according error margin can't use ones different.
so how round this??? don't see why setting background colors affecting foreground text (unless can force foreground it? html basic , hasn't been used few years ...)
cheers help
try css media query:
@media print { body { /*put styles here*/ } }
i'm not sure if ie supports though. i'm not sure versions dealing with.
Comments
Post a Comment