On Sat, 2008-11-08 at 08:01 -0500, Patrick Moloney wrote:
> Ashley Sheridan wrote:
> > On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote:
> >> 6 nov 2008 kl. 21.21 skrev Patrick Moloney:
> >>
> >>> I'd like to enable my users to print individual web pages from their  
> >>> browser. If they simply select the browser print button they don't  
> >>> get all the text that is displayed in a scrolling text area.
> >>> The web page is static html and css, in a php file.
> >>>
> >> This might be a good starting point.
> >>
> >> http://www.alistapart.com/articles/printyourway
> >>
> >> //frank
> >>
> >>
> > <link href="print.css" media="print" type="text/css" rel="stylesheet"/>
> > 
> > Then set out your CSS in print.css to lay out the page without scrolling
> > areas.
> > 
> > 
> > Ash
> > www.ashleysheridan.co.uk
> > 
> 
> Thanks all! So, to state the obvious (to you all) the solution is to 
> address my original question through CSS. That sounds good.
> Ashly, your post is helpful. What is the next step, to display the page 
> on screen using the new stylesheet, then rely on the user to use the 
> browsers print button?
> 
> Thanks,
> Patrick
> 
> 
Easier than that even, the browser automatically selects this stylesheet
when the user presses the print button (or you issue a window.print()
from javascript) because it recognises the media="print" attribute. You
can use the media type for other browsers too, like audio, print,
screen, projectors, etc.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to