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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background doesn't print

Status
Not open for further replies.

csiwa28

Programmer
Apr 12, 2001
177
I have some text within some <div> tags and my gray background color won't print. The page will come out white. Anyone know how to fix this. I'm using IE to view/print the page.

<p>
<div style="background: #EEEEEE">
Text goes in here.
</div>
</p>
 
There's an option (it's in Tools/Internet Options/Advanced in IE6) marked "Print background colors and images", make sure it's enabled on your machine.

And before yo ask, no, there's no way to force this setting one way or the other from a document or stylesheet - only the user can switch it on or off.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
That's to bad we can't make it a default, but anyways it worked. Thanks.
 
A really crappy work-around is to put the text in a button, and then style the button to have no borders, and apply the appropriate background color to the button. Background colors for buttons appear on printouts. Not the best solution, but it will work.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top