Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:45 PM
Lee K. Seitz
Guest
 
Posts: n/a
Default No background colors on print stylesheet

I have a set of pages with a special stylesheet used to override some
styles for printing. One of the things I've tried to do is reverse
the colors of my navigation. On the screen, I have a black background
and the navigation is red on yellow. For print, I (obviously) have a
white background and wanted the navigation to be reversed (yellow on
red) for better clarity.

I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all
Windows) and see the text is yellow and the background is completely
absent. Does the "print" media not recognize background colors?

You can find a page here:

http://home.hiwaay.net/~lkseitz/cvg/pmf2/index.shtml

and the stylesheets here:

http://home.hiwaay.net/~lkseitz/cvg/pmf2/pmf.css (media="all")
http://home.hiwaay.net/~lkseitz/cvg/pmf2/print.css (media="print")

I'm aware the HTML doesn't quite validate, but the problems are from
the Nedstat code at the bottom of the page that I can't modify too
much if I want it to work. It should have no bearing on the
navigation areas.

--
lkseitz (Lee K. Seitz) .at. hiwaay @dot@ net
"There are obviously many people who prefer one brand of bulls**t to
another, but I am not among them."
-- Tom Lehrer on whether he has a religious preference
  #2  
Old July 20th, 2005, 11:45 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: No background colors on print stylesheet

Lee K. Seitz wrote:[color=blue]
> I have a set of pages with a special stylesheet used to override some
> styles for printing. One of the things I've tried to do is reverse
> the colors of my navigation. On the screen, I have a black background
> and the navigation is red on yellow. For print, I (obviously) have a
> white background and wanted the navigation to be reversed (yellow on
> red) for better clarity.
>
> I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all
> Windows) and see the text is yellow and the background is completely
> absent. Does the "print" media not recognize background colors?[/color]

Yes it does. But perhaps you set your browser not to print backgrounds
colors.


Matthias

  #3  
Old July 20th, 2005, 11:45 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: No background colors on print stylesheet

lkseitz (Lee K. Seitz) .at. hiwaay @dot@ net wrote:
[color=blue]
>I have a set of pages with a special stylesheet used to override some
>styles for printing. One of the things I've tried to do is reverse
>the colors of my navigation. On the screen, I have a black background
>and the navigation is red on yellow. For print, I (obviously) have a
>white background and wanted the navigation to be reversed (yellow on
>red) for better clarity.[/color]

Why do you want your navigation to print at all? I've never been able
to click on a link on a print out and have anything happen. :-(
[color=blue]
>I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all
>Windows) and see the text is yellow and the background is completely
>absent. Does the "print" media not recognize background colors?[/color]

Most browsers have an option to "print background colours", and most
browsers have this option set to off by default.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 11:45 PM
Lee K. Seitz
Guest
 
Posts: n/a
Default Re: No background colors on print stylesheet

In article <2hjqh4Fdv101U1@uni-berlin.de>,
Matthias Gutfeldt <say-no-to-spam@gmx.net> wrote:[color=blue]
>Lee K. Seitz wrote:[color=green]
>> I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all
>> Windows) and see the text is yellow and the background is completely
>> absent. Does the "print" media not recognize background colors?[/color]
>
>Yes it does. But perhaps you set your browser not to print backgrounds
>colors.[/color]

Bingo! Additional reading revealed this. Apparently I'd configured
it to do so at home and forgotten about it. The browsers above are
just recently installed on a new computer and have not had most of the
preferences set yet. Thanks.

I may just do away with the navigation on the printed version
entirely. I guess there's no logical reason to leave it there.

--
lkseitz (Lee K. Seitz) .at. hiwaay @dot@ net
This quote appears by decree of Michael D. Hensley:
"But I'm not in anyone's .sig."
-- Vicki Robinson
  #5  
Old July 20th, 2005, 11:45 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: No background colors on print stylesheet

Lee K. Seitz wrote:[color=blue]
>
> I may just do away with the navigation on the printed version
> entirely. I guess there's no logical reason to leave it there.[/color]

Generally yes, there's no point to it. But there might be situations
where it's useful to have a "TOC" on the paper printout, as a reminder
to the reader that there's additional information available (OK, so the
smart reader will remember that, but hey, I'm not smart...).


Matthias

  #6  
Old July 20th, 2005, 11:45 PM
Philipp Lenssen
Guest
 
Posts: n/a
Default Re: No background colors on print stylesheet

Lee K. Seitz) .at. hiwaay @dot@ net wrote:
[color=blue]
> I have a set of pages with a special stylesheet used to override some
> styles for printing. One of the things I've tried to do is reverse
> the colors of my navigation. On the screen, I have a black background
> and the navigation is red on yellow. For print, I (obviously) have a
> white background and wanted the navigation to be reversed (yellow on
> red) for better clarity.
>
> I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all
> Windows) and see the text is yellow and the background is completely
> absent. Does the "print" media not recognize background colors?
>[/color]

E.g. IExplorer may ignore your background set in the print CSS. That's
a default setting to save ink I guess...

--
Google Blogoscoped
http://blog.outer-court.com
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles