Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

color???

Status
Not open for further replies.

zishan619

Programmer
May 28, 2003
284
MX
Hi everyone:
I have a table which on some sections have a class that would color the cell. When I print it the cell does not print with that color. The color is silver???I even tried gray....Why isn't this working? Help please
Thanks
Z
 
By default, backgrounds in web pages will not be printed. That is why you are experiencing problems. You can solve this by changing the settings:

IE: Tools -> Internet Options -> Advanced -> Printing -> Print background colors and images
Mozilla: File -> Page setup -> Options -> Print backgrounds (colors and images)

Hope this helped.
 
Thank you is there anyway to place this in coding. I am building an application for people to use and if they do not have it then it may cause a problem with the user.
 
If your desire is to create something that will print exactly as you design it, may I suggest you use a PDF, which is pretty much slanted for printing.

Alternately, the following code might help:

Code:
<p>This form prints best when you set your browser to print background colors:<br />
<b>IE:</b> Tools -&amp;gt; Internet Options -&amp;gt; Advanced -&amp;gt; Printing -&amp;gt; Print background colors and images<br />
<b>Mozilla:</b> File -&amp;gt; Page setup -&amp;gt; Options -&amp;gt; Print backgrounds (colors and images)</p>

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top