By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

No background colors on print stylesheet

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Lee K. Seitz wrote:
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?


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

Jul 20 '05 #2

P: n/a
lkseitz (Lee K. Seitz) .at. hiwaay @dot@ net wrote:
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.
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. :-(
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?


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
In article <2h************@uni-berlin.de>,
Matthias Gutfeldt <sa************@gmx.net> wrote:
Lee K. Seitz wrote:
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?


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


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
Jul 20 '05 #4

P: n/a
Lee K. Seitz wrote:

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


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

Jul 20 '05 #5

P: n/a
Lee K. Seitz) .at. hiwaay @dot@ net wrote:
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?


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
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.