print.css file to omit background ??

expatCanuck

New Member
Greetings -

My site (link in signature) has a slightly complex structure -- 7 areas over a background image, and the background resizes to fit the browser size.

What I'd like to do is create a print.css file that omits the background image when the site is printed.

Can anyone provide sample stub code or point me to a useful tutorial?

And where is the print.css file supposed to reside? public_html? public_html/style? wherever the relevant .htm file is?

Thanks kindly.

- Richard
 
Last edited:

jnjc

New Member
Two points:

1) I don't think you'll have to do anything to achieve this, I have a feeling that most browsers won't print background images anyway (I haven't test this in a while so I am not 100% sure).

2) use the "media" parameter like this:
Code:
<link rel="stylesheet"  type="text/css"  href="print.css"  [B]media="print"[/B] />

This specifies that the .css is only for print, put this after your normal .css

HTH,
JC
 
Top