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 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> 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
Archived
This topic is now archived and is closed to further replies.