-----Original Message-----
From: Bill Stephenson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 01, 2004 11:05 AM
To: [EMAIL PROTECTED]
Subject: Printing from a Web Browser

I just spent several hours formatting a web page template with a Style 
Sheet only to find that when the browser sends the page to a printer it 
apparently tosses the CSS info and renders it in the default HTML. Very 
frustrating....

Does anyone know where this issue really lies? Is it the browser? I 
tested with several and they all seemed to do this, but I'm only 
testing with one printer, an H-P Deskjet 920c. Is it the printer? Or, 
is it a Mac OS X thing? I don't have a WinPC set up right now to test 
with.

In any case, if anyone has any tips on providing consistency for 
printed HTML documents created with a perl CGI script and delivered 
across platforms, I could sure use them.

Kindest Regards,

Bill Stephenson


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


-----------------------------------------

Bill-
I'm no expert on the subject, but I believe that CSS is media specific. I
have multiple sets of style sheets, one for screen and one for print.  I
think you can create style sheets for all sorts of media (PDA, screen,
print, etc).  www.alistapart.com has a lot of resources for CSS but I think
your solution is to add another CSS to the document for media.
Example from one of my CSS/XHTML pages:
<!--

<head>
<!-- snip //-->
  <style type="text/css" media="screen">
    @import url("styles-main.css");
  </style>
  <link rel="stylesheet"
     type="text/css"
   media="print" href="print.css" />
<!-- snip //-->
</head>

//-->

You'll see I have 2 style sheets, one for print and one for the screen. In
this case its so that I can have different styles for print but I think it
may be necessary even if I linked the same style sheet for the print
media...

Another thought might be the way the style sheet is linked. E.g using
@import url() or another way.

Again, I'm no expert and this isn't a CSS list but maybe this helps some...

~Mike



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to