You need to provide your markup for which you have this error ..
Information: By default, the browser never prints background color , you need to enable this option in your browser.
Just in case, if you use
<link rel="stylesheet" type="text/css" href="print.css" media="screen" />
Instead, replace media=screen, print so that it applies the rules to your website and also prints.
<link rel="stylesheet" type="text/css" href="print.css" media="screen, print" />
You can also use a special print style sheet as follows:
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
You can also use special @media print requests.
@media print { }
Last but not least, to enable printing in the browser:
Firefox : click on alt (if your browser menu bar is hidden) - File - Page Setup - Tick Print Background
Chrome To enable printing in chrome, use this CSS property -webkit-print-color-adjust:exact;
source share