You are here: Re: How to generate a table so that the background color is grey on a printout « HTML « IT news, forums, messages
Re: How to generate a table so that the background color is grey on a printout

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация