robert_gsfame Posted January 29, 2010 Share Posted January 29, 2010 I have this <style type="text/css"> @media screen { .colors{background:#000000;} } @media print { .colors{background:#000000;} } </style> <body> <table width="300"><tr><td class="colors">Its Black!</td></tr></table> </body> When i print the page out using window.print(), there is no background that i've set which is black color....which part is wrong anyway?? Thnx so much for any helps Quote Link to comment https://forums.phpfreaks.com/topic/190193-css-media-print-not-printing-background-color/ Share on other sites More sharing options...
haku Posted January 29, 2010 Share Posted January 29, 2010 Try: <style type="text/css" media="print"> .colors{background-color:#000000;} </style> Quote Link to comment https://forums.phpfreaks.com/topic/190193-css-media-print-not-printing-background-color/#findComment-1003469 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.