Click to See Complete Forum and Search --> : Printing background color???


kariba
05-01-2003, 01:45 PM
Hello,

is there any way I can set that when I print my page, it also print the background colors of tables, and td's?

Thanks a lot,

Mike

Falconix
05-01-2003, 02:01 PM
By default, these should be printed... can you show us your page?

kariba
05-01-2003, 02:10 PM
Hi,

thank you for your reply.

This is my page, it just prints the text...

Mike

<HTML>
<HEAD>
<TITLE>Claim Management System | ALPHA | Norcal Waste Systems Inc.</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<style TYPE="text/css">

TD.ClientNameBackground
{
background:#D6674F;
border-top:0px dotted #6EB6CD;
border-bottom:0px dotted #6EB6CD;
border-left:0px dotted #6EB6CD;
border-right:0px dotted #6EB6CD;
text-align:center;

}
</style>
</HEAD>
<body>
<div id="_ctl1_HeaderPanel">

<table width="750" align="center" cellspacing="0" cellpadding="0">
<tr>
<td class="ClientNameBackground" width="100%">
<span class="ClientName"><span id="_ctl1_lblClientName">This is test.</span></span>
</td>
</tr>
</table>

</div>
</body>
</html>

nkaisare
05-01-2003, 03:41 PM
That depends on your browser default. Usually default is to print background image but not background color.
[PS: I may be totally wrong here. But thats what my IE does and I didn't tinker with any of its settings]

kariba
05-01-2003, 03:48 PM
Hmm,

that's not good. So there is no way, I can make sure the background gets printed on client...

Does anybody know of a way around this?

Thanks,

Mike

DaveSW
05-02-2003, 04:12 AM
Use a graphics editor to make a 1 x 1 pixel image. Fill it with the color you want, set it as the background image. (it should tile to fill the cell)

Not sure if it will work, but if it prints background images, it should!!

Dave

nkaisare
05-02-2003, 09:42 AM
You can use print stylesheets
<link rel="stylesheet" href="style.css" type="text/css" media="print">

For most cases, I'd suggest to use white-on-black printing, with font sizes in pt and less wider font (eg Times or Arial instead of Verdana). and {display: none} set for navigation bar.

However if you choose to, you can set the browser to print the background color. I doubt if it'll work if someone overrides the print styles.