views:

384

answers:

2

Hi,

I have td like this:

<td align="left" bgcolor="#FF0000">

In browsers, there is a red background color applied to it but when i see print preview of this, there is no red color in the background. also the font color is white but it also gets converted to white when print previewing it.

Anyone knows what can be the reason?

Thanks

+1  A: 

The printing of background colors is supported differently by each browser, and it is often off by default. For instance, in Safari, it is an option in the print dialog called "Print Backgrounds". I am not sure where the option is in other browsers.

Doug Neiner
A: 

Try using CSS if you can and if the background doesn't work with the print version specify a print css document.

<link rel="stylesheet" rev="stylesheet" href="style.css" type="text/css" media="all" /> <link rel="stylesheet" rev="stylesheet" href="print.css" type="text/css" media="print" />

Basic CSS here:


td{ background-color:#FF0000; }

Gazzer
As mentioned by @doug-neiner this doesn't work across all browsers, just doing the CSS won't work
Jj
I don't see any mention of CSS by @doug-neiner . The OP was also asking about font-color when printing. You marked this down?
Gazzer