problem w/ bgcolor in printing
im using PHP and i have this table with bgcolor. when im viewing it the bgcolor is included but when i print it using the window.print() function the bgcolor wont display
heres the part of my code where i put the bgcolor
Code:
<tr>
<td colspan="9" align="right" class="txtformat1"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" align="left" class="txtformat1" bgcolor="#999999"> PRODUCTS</td>
</tr>
<tr>
<td width="11%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">ITEM CODE</td>
<td width="33%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">ARTICLES</td>
<td width="14%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">QUANTITY</td>
<td width="22%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">UNIT PRICE</td>
<td width="20%" align="center" bgcolor="#CCCCCC" class="txtformat1 ">TOTAL</td>
</tr>
i want the bgcolor=#999999 and #CCCCCC included when i print my reports
Re: problem w/ bgcolor in printing
Re: problem w/ bgcolor in printing
The code itself is not PHP, therefore this belongs in the client-side.
However, your problem isn't the code. This is just how many browsers work. When opening the print dialog, you will have to select an option that tells the computer to print backgrounds.
Re: problem w/ bgcolor in printing
Ryan, please stop posting duplicates of this thread. This is the forum in which it belongs. If you want to reply, do it in this thread.