CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2003, 12:21 PM
trevorh trevorh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Billings, MT
Posts: 2 trevorh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
printing CSS Backgrounds

Hello,
Is there any way I can force a CSS background-color to be included when the user prints the page? I'm using the background-color for highlighting purposes on invoices for our company, and our employees need to see the highlights when they are printed out. Thanks - Trevor Hartman

Reply With Quote
  #2  
Old April 16th, 2003, 01:08 PM
MJEggertson MJEggertson is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2002
Location: Seattle WA
Posts: 863 MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level)MJEggertson User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 sec
Reputation Power: 13
No, you can't. Background color printing is controlled completely by the client browser, your code has no effect on it. Just describe to the employees how to set their browser to print the background colors, and some may do so.

Reply With Quote
  #3  
Old April 16th, 2003, 01:44 PM
trevorh trevorh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Billings, MT
Posts: 2 trevorh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thats what i thought

Ok, thats what I thought. Just checking to see if someone had an alterior solution. Thanks for your reply

Trevor

Reply With Quote
  #4  
Old June 17th, 2003, 08:07 AM
danjam danjam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 danjam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 11 sec
Reputation Power: 0
CSS Colour - Printer settings?

Hi there

I'm encountering the exact issue mentioned here. What browser primting-settings are refered to? I've tried playing with them without much success (using a non-colour printer...)

Thanks

Reply With Quote
  #5  
Old June 17th, 2003, 09:02 AM
toofan toofan is offline
:: cerebralshock ::
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Everywhere & nowhere.
Posts: 133 toofan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 49 sec
Reputation Power: 11
@media print {
/* style sheet for print goes here */
}

embed this in your html and use it in conjunction with a javascript or php function to print the page. I haven't tried just using the print css and actually printing a page, so can't guarantee it.

Reply With Quote
  #6  
Old June 17th, 2003, 09:45 AM
danjam danjam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 danjam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 11 sec
Reputation Power: 0
Question Clarification

Hi there

Thanks for the response.

I'm familiar with @media (and it's other incarnations, the <LINK> attribute "media" etc...) but that merely applies the CSS to the page for printing. (Correct me if I'm wrong.) The default is to apply the CSS to printing.

However, even when the CSS is applied to printing, background colours (such as for <TD>'s) will not print. What browser setting will change this?
I tried without success in IE 6. Perhaps it's possible with other browsers.

Reply With Quote
  #7  
Old June 17th, 2003, 12:54 PM
icy_polecat's Avatar
icy_polecat icy_polecat is offline
Senior Polecat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Jersey (the original version)
Posts: 210 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 57 sec
Reputation Power: 10
Send a message via Yahoo to icy_polecat
in ie:

Tools > Internet Options > Advanced

The scroll down to just above security - you should see an option called "printing > print background colours and pictures" - check the box and bob's your mothers brother
__________________
Quidquid latine dictum sit, altum viditur.

http://www.XSet.co.uk

Reply With Quote
  #8  
Old June 18th, 2003, 06:44 AM
danjam danjam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 danjam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 11 sec
Reputation Power: 0
Cool Thanks...

Thanks polecat

That did the trick

Good onya...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > printing CSS Backgrounds

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap