Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 19th, 2003, 10:52 AM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
css backgound style and printing

Hi all,

While setting up a printable page (including css) - I was stumped to find that although any css background styles showed up on the screen, they were not printing. After trying just about everything in the code I looked at the advanced properties of the browser itself and found one called 'Print background colors and images' which appeared to be unticked by default in IE6!

One quick tick later, and low and behold - the page printed correctly (grr - Microsoft!)

Does anyone know if this effects other browsers - and is there a way to check the state of the property in something like Javascript? (Doubt if I could do it in php - pitty!) If I could check, then I could incorporate an alert telling the user what to do to get the page to print correctly if they wanted to...

Any comments would be great, thanks, J

Reply With Quote
  #2  
Old September 19th, 2003, 06:16 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: css backgound style and printing

It is not only IE.
In Mozilla, it is unchecked by default too.

I don't think it can be changed by a script.

Reply With Quote
  #3  
Old September 19th, 2003, 06:56 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: css backgound style and printing

look at @media css attribute.

it specifies to which media that css aplies (like screen, print, audio, projcetor, ...)

maybe it will print background if you specify @print css style sheet. (didn't try it)

more info http://www.w3.org/TR/CSS21/media.html

Reply With Quote
  #4  
Old September 21st, 2003, 06:15 PM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: css backgound style and printing

Thanks all, but I already tried the css attribute @media - infact, you can also specify that you are bringing in this type of content as part of the link() function.

However no dice. The printer completely ignores the background settings unless that tick is removed!


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > css backgound style and printing


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway