Re: Printing Web Page

From: Date: Sat, 08 Nov 2008 13:01:46 +0000
Subject: Re: Printing Web Page
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-283094@lists.php.net to get a copy of this message
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

« previous php.general (#283094) next »