Posted by wayne on 11/26/05 22:09
Stefan Mueller wrote:
> I'd like to generate with PHP a HTML email which contains a table.
> The backgound color of the table is grey. But if you print the email or HTML
> page on a printer the background color of the table is not printed.
>
> td.style_tabletitle {
> font-family: verdana;
> font-size: 8pt;
> font-weight: bold;
> color: #000000;
> background-color: #666666;
> }
>
> <td width = "100%" class = "style_tabletitle">
> My table title
> </td>
>
> Is there any possibility to define the background of the table so that the
> background is also printed (only a light grey)?
>
> Stefan
>
>
Try this in your style sheet:
@media print {
td.style_tabletitle {
background-color: #ffffff !important;
}
--
Wayne
http://www.glenmeadows.com
Navigation:
[Reply to this message]
|